CSS named colour
Medium Blue
#0000cd
A CSS named colour: mediumblue is valid anywhere a colour is expected.
- RGB
- rgb(0 0 205)
- HSL
- 240°, 100%, 40%
- OKLCh
- 38.3% 0.266 264.1
Medium Blue in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #0000cd | |
|---|---|---|
| RGB | rgb(0 0 205) | |
| RGB legacy | rgb(0, 0, 205) | |
| RGB percent | rgb(0% 0% 80.39%) | |
| HSL | hsl(240 100% 40.2%) | |
| HSL legacy | hsl(240, 100%, 40.2%) | |
| HSV / HSB | hsv(240, 100%, 80.4%) | |
| HWB | hwb(240 0% 19.6%) | |
| Nearest name | mediumblue | |
| CMYK | cmyk(100%, 100%, 0%, 19.6%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(38.345% 0.26571 264.052)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(38.345% -0.02753 -0.26428) | |
| CIE LCh | lch(22.657% 111.301 301.364) | |
| CIE Lab | lab(22.657% 57.93 -95.037) | |
| Display P3 | color(display-p3 0 0 0.771) | |
| Rec. 2020 | color(rec2020 0.1151 0.0312 0.7385) | |
| srgb-linear | color(srgb-linear 0 0 0.6105)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.1102 0.0441 0.5803) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.0, 0.0, 0.804)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.0, 0.0, 0.61)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.0, 0.0, 0.804, 1.0) | |
| GLSL vec4 — linear | vec4(0.0, 0.0, 0.61, 1.0) | |
| GLSL ivec3 | ivec3(0, 0, 205) | |
| HLSL float3 — sRGB | float3(0.0, 0.0, 0.804) | |
| HLSL float3 — linear | float3(0.0, 0.0, 0.61) | |
| HLSL float4 — sRGB | float4(0.0, 0.0, 0.804, 1.0) | |
| HLSL half4 — sRGB | half4(0.0, 0.0, 0.804, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.0, 0.0, 0.804) | |
| WGSL vec4f — sRGB | vec4f(0.0, 0.0, 0.804, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.0, 0.0, 0.61) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.0f, 0.0f, 0.804f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(0, 0, 205, 255) | |
| Unreal FLinearColor | FLinearColor(0.0f, 0.0f, 0.6105f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(0, 0, 205, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0, 0, 0.804, 1) | |
| Flutter Color | Color(0xFF0000CD)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(0, 0, 205) | |
| SwiftUI Color | Color(red: 0, green: 0, blue: 0.804) | |
| UIKit UIColor | UIColor(red: 0, green: 0, blue: 0.804, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0x0000CD | |
|---|---|---|
| 0x hex (ARGB) | 0xFF0000CD | |
| Array 0–1 | [0, 0, 0.804] | |
| Array 0–255 | [0, 0, 205] | |
| Decimal integer | 205 |
Contrast and accessibility
WCAG 2 ratios are what audits and legislation reference. APCA is shown alongside because WCAG 2 is known to misjudge mid-tone backgrounds, and it is the basis of the WCAG 3 draft.
| Pairing | WCAG 2 ratio | Level | APCA | Suitable for |
|---|---|---|---|---|
| Medium Blue on white | 11.16:1 | AAA | Lc 92 | Body text at any size |
| Medium Blue on black | 1.88:1 | Fail | Lc 10 | Not usable for text |
Medium Blue text on a white background
Medium Blue text on a black background
White text on Medium Blue
Black text on Medium Blue
Tonal scale
Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.
- 50#edf8ff
- 100#deeeff
- 200#c4ddff
- 300#a2c5ff
- 400#76a5ff
- 500#447fff
- 600#1c5aff
- 700#0b41e0
- 800#012bbf
- 900#0018a2
- 950#010072
Tints and shades
Mixed perceptually toward white and black, so the steps feel evenly spaced.
- Tint 1#194dda
- Tint 2#4575e5
- Tint 3#7199ee
- Tint 4#9fbcf6
- Tint 5#cedefb
- Shade 1#0000a0
- Shade 2#000076
- Shade 3#00004e
- Shade 4#000029
- Shade 5#000009
Colours that work with Medium Blue
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #5b3d00
- #890009
- #005500
- #004a72
- #5300af
Closest CSS names
mediumblueexact matchblueΔEok 0.083darkblueΔEok 0.116navyΔEok 0.137midnightblueΔEok 0.158darkslateblueΔEok 0.160