#021431#021431

#021431 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.6% C 0.064 H 257.7°. Best body text is #FFFFFF at 18.31:1 contrast (WCAG AA passes).

Color values

HEX#021431
RGBrgb(2, 20, 49)
HSLhsl(217, 92%, 10%)
HSVhsv(217, 96%, 19%)
CMYKcmyk(95.9%, 59.2%, 0%, 80.8%)
CIE-LABlab(6.64, 5.36, -21.40)
CIE-LCHlch(6.64, 22.06, 284.07°)
OKLaboklab(19.62% -0.0136 -0.062)
OKLCHoklch(19.62% 0.064 257.7)
XYZxyz(0.8294, 0.7349, 3.0033)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021431 #311F02
analogous
#022C31 #021431 #070231
triadic
#021431 #310214 #143102
tetradic
#021431 #31022C #311F02 #023107
square
#021431 #31022C #311F02 #023107
split-complementary
#021431 #310702 #2C3102
monochromatic
#010C1D #010C1D #021431 #042C6C #0744A7

Accessibility & contrast

On white

18.31
#021431 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#021431 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021431
18.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021431#FFFFFF#000000##FFFFFF
##0214311.0018.311.1518.31
#FFFFFF18.311.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041732
Deuteranopia (green-blind)
#001330
Tritanopia (blue-blind)
#001B20
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #021431;
/* rgb */ color: rgb(2, 20, 49);
/* oklch */ color: oklch(19.6% 0.064 257.7);
Tailwind
colors: {
  custom: {
    50: '#4a5169',
    500: '#021431',
    950: '#000000',
  },
}
SCSS
$custom: #021431;
$custom-light: #4a5169;
$custom-dark: #000000;
JSON
{
  "hex": "#021431",
  "rgb": {
    "r": 2,
    "g": 20,
    "b": 49
  },
  "hsl": {
    "h": 217.021,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.19617,
    "c": 0.06352,
    "h": 257.7
  },
  "luminance": 0.00735
}

Semantic roles & 50–950 ramp

primary
#021431
secondary
#755219
accent
#AD29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #021431

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

Preview Lab → · Contrast checker → · Palette generator →

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