Colour reference
Zinc 900
#18181b
A near-black with a cool cast, common in dark UI.
- RGB
- rgb(24 24 27)
- HSL
- 240°, 6%, 10%
- OKLCh
- 21.0% 0.006 285.9
Zinc 900 in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #18181b | |
|---|---|---|
| RGB | rgb(24 24 27) | |
| RGB legacy | rgb(24, 24, 27) | |
| RGB percent | rgb(9.41% 9.41% 10.59%) | |
| HSL | hsl(240 5.9% 10%) | |
| HSL legacy | hsl(240, 5.9%, 10%) | |
| HSV / HSB | hsv(240, 11.1%, 10.6%) | |
| HWB | hwb(240 9.4% 89.4%) | |
| Nearest name | midnightblue (approx.) | |
| CMYK | cmyk(11.1%, 11.1%, 0%, 89.4%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(21.033% 0.00586 285.885)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(21.033% 0.0016 -0.00564) | |
| CIE LCh | lch(8.346% 2.2 285.903) | |
| CIE Lab | lab(8.346% 0.603 -2.116) | |
| Display P3 | color(display-p3 0.0941 0.0941 0.1049) | |
| Rec. 2020 | color(rec2020 0.0415 0.0412 0.0485) | |
| srgb-linear | color(srgb-linear 0.0091 0.0091 0.011)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.009 0.0093 0.0117) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.094, 0.094, 0.106)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.009, 0.009, 0.011)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.094, 0.094, 0.106, 1.0) | |
| GLSL vec4 — linear | vec4(0.009, 0.009, 0.011, 1.0) | |
| GLSL ivec3 | ivec3(24, 24, 27) | |
| HLSL float3 — sRGB | float3(0.094, 0.094, 0.106) | |
| HLSL float3 — linear | float3(0.009, 0.009, 0.011) | |
| HLSL float4 — sRGB | float4(0.094, 0.094, 0.106, 1.0) | |
| HLSL half4 — sRGB | half4(0.094, 0.094, 0.106, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.094, 0.094, 0.106) | |
| WGSL vec4f — sRGB | vec4f(0.094, 0.094, 0.106, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.009, 0.009, 0.011) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.094f, 0.094f, 0.106f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(24, 24, 27, 255) | |
| Unreal FLinearColor | FLinearColor(0.0091f, 0.0091f, 0.011f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(24, 24, 27, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.094, 0.094, 0.106, 1) | |
| Flutter Color | Color(0xFF18181B)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(24, 24, 27) | |
| SwiftUI Color | Color(red: 0.094, green: 0.094, blue: 0.106) | |
| UIKit UIColor | UIColor(red: 0.094, green: 0.094, blue: 0.106, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0x18181B | |
|---|---|---|
| 0x hex (ARGB) | 0xFF18181B | |
| Array 0–1 | [0.094, 0.094, 0.106] | |
| Array 0–255 | [24, 24, 27] | |
| Decimal integer | 1579035 |
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 |
|---|---|---|---|---|
| Zinc 900 on white | 17.72:1 | AAA | Lc 105 | Body text at any size |
| Zinc 900 on black | 1.19:1 | Fail | Lc 0 | Not usable for text |
Zinc 900 text on a white background
Zinc 900 text on a black background
White text on Zinc 900
Black text on Zinc 900
Tonal scale
Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.
- 50#f7f7fa
- 100#ededf0
- 200#dcdcdf
- 300#c5c5c9
- 400#a9a9ad
- 500#8b8b8f
- 600#717175
- 700#5a5a5e
- 800#47474a
- 900#38383a
- 950#1f1f21
Tints and shades
Mixed perceptually toward white and black, so the steps feel evenly spaced.
- Tint 1#38383b
- Tint 2#5b5b5e
- Tint 3#818183
- Tint 4#a9a9ab
- Tint 5#d3d3d4
- Shade 1#101013
- Shade 2#09090b
- Shade 3#040405
- Shade 4#010101
- Shade 5#000000
Colours that work with Zinc 900
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #191916
- #1b1816
- #161918
- #17191b
- #19181a
Closest CSS names
midnightblueΔEok 0.158navyΔEok 0.192darkslategrayΔEok 0.196darkblueΔEok 0.209blackΔEok 0.210indigoΔEok 0.216