Colour reference
Zinc 800
#27272a
- RGB
- rgb(39 39 42)
- HSL
- 240°, 4%, 16%
- OKLCh
- 27.4% 0.005 286.0
Zinc 800 in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #27272a | |
|---|---|---|
| RGB | rgb(39 39 42) | |
| RGB legacy | rgb(39, 39, 42) | |
| RGB percent | rgb(15.29% 15.29% 16.47%) | |
| HSL | hsl(240 3.7% 15.9%) | |
| HSL legacy | hsl(240, 3.7%, 15.9%) | |
| HSV / HSB | hsv(240, 7.1%, 16.5%) | |
| HWB | hwb(240 15.3% 83.5%) | |
| Nearest name | darkslategray (approx.) | |
| CMYK | cmyk(7.1%, 7.1%, 0%, 83.5%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(27.394% 0.00548 286.033)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(27.394% 0.00151 -0.00526) | |
| CIE LCh | lch(15.728% 2.059 285.718) | |
| CIE Lab | lab(15.728% 0.558 -1.982) | |
| Display P3 | color(display-p3 0.1529 0.1529 0.1637) | |
| Rec. 2020 | color(rec2020 0.0915 0.0911 0.1015) | |
| srgb-linear | color(srgb-linear 0.0203 0.0203 0.0232)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.0198 0.0205 0.0248) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.153, 0.153, 0.165)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.02, 0.02, 0.023)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.153, 0.153, 0.165, 1.0) | |
| GLSL vec4 — linear | vec4(0.02, 0.02, 0.023, 1.0) | |
| GLSL ivec3 | ivec3(39, 39, 42) | |
| HLSL float3 — sRGB | float3(0.153, 0.153, 0.165) | |
| HLSL float3 — linear | float3(0.02, 0.02, 0.023) | |
| HLSL float4 — sRGB | float4(0.153, 0.153, 0.165, 1.0) | |
| HLSL half4 — sRGB | half4(0.153, 0.153, 0.165, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.153, 0.153, 0.165) | |
| WGSL vec4f — sRGB | vec4f(0.153, 0.153, 0.165, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.02, 0.02, 0.023) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.153f, 0.153f, 0.165f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(39, 39, 42, 255) | |
| Unreal FLinearColor | FLinearColor(0.0203f, 0.0203f, 0.0232f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(39, 39, 42, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.153, 0.153, 0.165, 1) | |
| Flutter Color | Color(0xFF27272A)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(39, 39, 42) | |
| SwiftUI Color | Color(red: 0.153, green: 0.153, blue: 0.165) | |
| UIKit UIColor | UIColor(red: 0.153, green: 0.153, blue: 0.165, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0x27272A | |
|---|---|---|
| 0x hex (ARGB) | 0xFF27272A | |
| Array 0–1 | [0.153, 0.153, 0.165] | |
| Array 0–255 | [39, 39, 42] | |
| Decimal integer | 2565930 |
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 800 on white | 14.89:1 | AAA | Lc 102 | Body text at any size |
| Zinc 800 on black | 1.41:1 | Fail | Lc 0 | Not usable for text |
Zinc 800 text on a white background
Zinc 800 text on a black background
White text on Zinc 800
Black text on Zinc 800
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#a9a9ac
- 500#8b8b8e
- 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#464649
- Tint 2#67676a
- Tint 3#8b8b8d
- Tint 4#b0b0b1
- Tint 5#d7d7d8
- Shade 1#1c1c1f
- Shade 2#121214
- Shade 3#08080a
- Shade 4#020203
- Shade 5#000000
Colours that work with Zinc 800
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #282825
- #2a2725
- #252827
- #26282a
- #282729
Closest CSS names
darkslategrayΔEok 0.135midnightblueΔEok 0.139navyΔEok 0.183darkslateblueΔEok 0.184indigoΔEok 0.186maroonΔEok 0.187