CSS named colour
Navy
#000080
A CSS named colour: navy is valid anywhere a colour is expected.
- RGB
- rgb(0 0 128)
- HSL
- 240°, 100%, 25%
- OKLCh
- 27.1% 0.188 264.1
Navy in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #000080 | |
|---|---|---|
| RGB | rgb(0 0 128) | |
| RGB legacy | rgb(0, 0, 128) | |
| RGB percent | rgb(0% 0% 50.2%) | |
| HSL | hsl(240 100% 25.1%) | |
| HSL legacy | hsl(240, 100%, 25.1%) | |
| HSV / HSB | hsv(240, 100%, 50.2%) | |
| HWB | hwb(240 0% 49.8%) | |
| Nearest name | navy | |
| CMYK | cmyk(100%, 100%, 0%, 49.8%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(27.115% 0.18789 264.052)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(27.115% -0.01947 -0.18688) | |
| CIE LCh | lch(11.335% 78.704 301.364) | |
| CIE Lab | lab(11.335% 40.964 -67.203) | |
| Display P3 | color(display-p3 0 0 0.4806) | |
| Rec. 2020 | color(rec2020 0.0421 0.011 0.4254) | |
| srgb-linear | color(srgb-linear 0 0 0.2159)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.039 0.0156 0.2052) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.0, 0.0, 0.502)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.0, 0.0, 0.216)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.0, 0.0, 0.502, 1.0) | |
| GLSL vec4 — linear | vec4(0.0, 0.0, 0.216, 1.0) | |
| GLSL ivec3 | ivec3(0, 0, 128) | |
| HLSL float3 — sRGB | float3(0.0, 0.0, 0.502) | |
| HLSL float3 — linear | float3(0.0, 0.0, 0.216) | |
| HLSL float4 — sRGB | float4(0.0, 0.0, 0.502, 1.0) | |
| HLSL half4 — sRGB | half4(0.0, 0.0, 0.502, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.0, 0.0, 0.502) | |
| WGSL vec4f — sRGB | vec4f(0.0, 0.0, 0.502, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.0, 0.0, 0.216) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.0f, 0.0f, 0.502f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(0, 0, 128, 255) | |
| Unreal FLinearColor | FLinearColor(0.0f, 0.0f, 0.2159f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(0, 0, 128, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0, 0, 0.502, 1) | |
| Flutter Color | Color(0xFF000080)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(0, 0, 128) | |
| SwiftUI Color | Color(red: 0, green: 0, blue: 0.502) | |
| UIKit UIColor | UIColor(red: 0, green: 0, blue: 0.502, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0x000080 | |
|---|---|---|
| 0x hex (ARGB) | 0xFF000080 | |
| Array 0–1 | [0, 0, 0.502] | |
| Array 0–255 | [0, 0, 128] | |
| Decimal integer | 128 |
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 |
|---|---|---|---|---|
| Navy on white | 16.01:1 | AAA | Lc 101 | Body text at any size |
| Navy on black | 1.31:1 | Fail | Lc 0 | Not usable for text |
Navy text on a white background
Navy text on a black background
White text on Navy
Black text on Navy
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#75a5ff
- 500#4f83fc
- 600#3868da
- 700#2651ba
- 800#183d9c
- 900#0d2d83
- 950#011359
Tints and shades
Mixed perceptually toward white and black, so the steps feel evenly spaced.
- Tint 1#173c98
- Tint 2#4264af
- Tint 3#6e8ac4
- Tint 4#9cb0d9
- Tint 5#cdd7ec
- Shade 1#000063
- Shade 2#000048
- Shade 3#00002e
- Shade 4#000016
- Shade 5#000003
Colours that work with Navy
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #372200
- #550001
- #003300
- #002b48
- #320070
Closest CSS names
navyexact matchdarkblueΔEok 0.020midnightblueΔEok 0.054mediumblueΔEok 0.137indigoΔEok 0.137darkslateblueΔEok 0.167