#021331#021331

#021331 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.3% C 0.065 H 258.7°. Best body text is #FFFFFF at 18.42:1 contrast (WCAG AA passes).

Color values

HEX#021331
RGBrgb(2, 19, 49)
HSLhsl(218, 92%, 10%)
HSVhsv(218, 96%, 19%)
CMYKcmyk(95.9%, 61.2%, 0%, 80.8%)
CIE-LABlab(6.33, 6.00, -21.90)
CIE-LCHlch(6.33, 22.70, 285.32°)
OKLaboklab(19.34% -0.0127 -0.0638)
OKLCHoklch(19.34% 0.065 258.7)
XYZxyz(0.8121, 0.7003, 2.9975)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021331 #312002
analogous
#022A31 #021331 #090231
triadic
#021331 #310213 #133102
tetradic
#021331 #31022A #312002 #023109
square
#021331 #31022A #312002 #023109
split-complementary
#021331 #310902 #2A3102
monochromatic
#010B1D #010B1D #021331 #042A6C #0741A7

Accessibility & contrast

On white

18.42
#021331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#021331 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021331
18.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021331#FFFFFF#000000##FFFFFF
##0213311.0018.421.1418.42
#FFFFFF18.421.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021632
Deuteranopia (green-blind)
#001230
Tritanopia (blue-blind)
#001A1F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #021331;
/* rgb */ color: rgb(2, 19, 49);
/* oklch */ color: oklch(19.3% 0.065 258.7);
Tailwind
colors: {
  custom: {
    50: '#4a5069',
    500: '#021331',
    950: '#000000',
  },
}
SCSS
$custom: #021331;
$custom-light: #4a5069;
$custom-dark: #000000;
JSON
{
  "hex": "#021331",
  "rgb": {
    "r": 2,
    "g": 19,
    "b": 49
  },
  "hsl": {
    "h": 218.298,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.19341,
    "c": 0.06505,
    "h": 258.7
  },
  "luminance": 0.007
}

Semantic roles & 50–950 ramp

primary
#021331
secondary
#755419
accent
#B229FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #021331

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

Preview Lab → · Contrast checker → · Palette generator →

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