#021129#021129

#021129 is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.0% C 0.055 H 256.7°. Best body text is #FFFFFF at 18.84:1 contrast (WCAG AA passes).

Color values

HEX#021129
RGBrgb(2, 17, 41)
HSLhsl(217, 91%, 8%)
HSVhsv(217, 95%, 16%)
CMYKcmyk(95.1%, 58.5%, 0%, 83.9%)
CIE-LABlab(5.18, 3.29, -17.75)
CIE-LCHlch(5.18, 18.05, 280.49°)
OKLaboklab(18.02% -0.0125 -0.0531)
OKLCHoklch(18.02% 0.055 256.7)
XYZxyz(0.6256, 0.5738, 2.1752)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021129 #291A02
analogous
#022429 #021129 #060229
triadic
#021129 #290211 #112902
tetradic
#021129 #290224 #291A02 #022906
square
#021129 #290224 #291A02 #022906
split-complementary
#021129 #290602 #242902
monochromatic
#010C1D #010C1D #021129 #052963 #08419E

Accessibility & contrast

On white

18.84
#021129 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#021129 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021129
18.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021129#FFFFFF#000000##FFFFFF
##0211291.0018.841.1118.84
#FFFFFF18.841.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05132A
Deuteranopia (green-blind)
#001029
Tritanopia (blue-blind)
#00171A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #021129;
/* rgb */ color: rgb(2, 17, 41);
/* oklch */ color: oklch(18.0% 0.055 256.7);
Tailwind
colors: {
  custom: {
    50: '#484f63',
    500: '#021129',
    950: '#000000',
  },
}
SCSS
$custom: #021129;
$custom-light: #484f63;
$custom-dark: #000000;
JSON
{
  "hex": "#021129",
  "rgb": {
    "r": 2,
    "g": 17,
    "b": 41
  },
  "hsl": {
    "h": 216.923,
    "s": 90.698,
    "l": 8.431
  },
  "oklch": {
    "l": 0.18023,
    "c": 0.05451,
    "h": 256.7
  },
  "luminance": 0.00574
}

Semantic roles & 50–950 ramp

primary
#021129
secondary
#6E4D19
accent
#AD29FF
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #021129

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

Preview Lab → · Contrast checker → · Palette generator →

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