#021229#021229

#021229 is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.3% C 0.053 H 255.3°. Best body text is #FFFFFF at 18.73:1 contrast (WCAG AA passes).

Color values

HEX#021229
RGBrgb(2, 18, 41)
HSLhsl(215, 91%, 8%)
HSVhsv(215, 95%, 16%)
CMYKcmyk(95.1%, 56.1%, 0%, 83.9%)
CIE-LABlab(5.47, 2.70, -17.30)
CIE-LCHlch(5.47, 17.50, 278.87°)
OKLaboklab(18.31% -0.0135 -0.0512)
OKLCHoklch(18.31% 0.053 255.3)
XYZxyz(0.6414, 0.6055, 2.1805)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021229 #291902
analogous
#022529 #021229 #050229
triadic
#021229 #290212 #122902
tetradic
#021229 #290225 #291902 #022905
square
#021229 #290225 #291902 #022905
split-complementary
#021229 #290502 #252902
monochromatic
#010D1D #010D1D #021229 #052C63 #08459E

Accessibility & contrast

On white

18.73
#021229 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#021229 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021229
18.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021229#FFFFFF#000000##FFFFFF
##0212291.0018.731.1218.73
#FFFFFF18.731.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06142A
Deuteranopia (green-blind)
#011029
Tritanopia (blue-blind)
#00181B
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #021229;
/* rgb */ color: rgb(2, 18, 41);
/* oklch */ color: oklch(18.3% 0.053 255.3);
Tailwind
colors: {
  custom: {
    50: '#484f63',
    500: '#021229',
    950: '#000000',
  },
}
SCSS
$custom: #021229;
$custom-light: #484f63;
$custom-dark: #000000;
JSON
{
  "hex": "#021229",
  "rgb": {
    "r": 2,
    "g": 18,
    "b": 41
  },
  "hsl": {
    "h": 215.385,
    "s": 90.698,
    "l": 8.431
  },
  "oklch": {
    "l": 0.18314,
    "c": 0.053,
    "h": 255.3
  },
  "luminance": 0.00606
}

Semantic roles & 50–950 ramp

primary
#021229
secondary
#6E4B19
accent
#A729FF
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010205
muted
#777879

Preview Lab

Preview with #021229

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#021229 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva