#021131#021131

#021131 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.8% C 0.068 H 260.6°. Best body text is #FFFFFF at 18.63:1 contrast (WCAG AA passes).

Color values

HEX#021131
RGBrgb(2, 17, 49)
HSLhsl(221, 92%, 10%)
HSVhsv(221, 96%, 19%)
CMYKcmyk(95.9%, 65.3%, 0%, 80.8%)
CIE-LABlab(5.74, 7.20, -22.83)
CIE-LCHlch(5.74, 23.94, 287.49°)
OKLaboklab(18.8% -0.0111 -0.0672)
OKLCHoklch(18.8% 0.068 260.6)
XYZxyz(0.7797, 0.6355, 2.9867)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021131 #312202
analogous
#022931 #021131 #0A0231
triadic
#021131 #310211 #113102
tetradic
#021131 #310229 #312202 #02310A
square
#021131 #310229 #312202 #02310A
split-complementary
#021131 #310A02 #293102
monochromatic
#010A1D #010A1D #021131 #04256C #073AA7

Accessibility & contrast

On white

18.63
#021131 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#021131 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021131
18.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021131#FFFFFF#000000##FFFFFF
##0211311.0018.631.1318.63
#FFFFFF18.631.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001532
Deuteranopia (green-blind)
#001130
Tritanopia (blue-blind)
#00191E
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #021131;
/* rgb */ color: rgb(2, 17, 49);
/* oklch */ color: oklch(18.8% 0.068 260.6);
Tailwind
colors: {
  custom: {
    50: '#4a4f69',
    500: '#021131',
    950: '#000000',
  },
}
SCSS
$custom: #021131;
$custom-light: #4a4f69;
$custom-dark: #000000;
JSON
{
  "hex": "#021131",
  "rgb": {
    "r": 2,
    "g": 17,
    "b": 49
  },
  "hsl": {
    "h": 220.851,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.18802,
    "c": 0.06812,
    "h": 260.6
  },
  "luminance": 0.00636
}

Semantic roles & 50–950 ramp

primary
#021131
secondary
#755819
accent
#BB29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #021131

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

Preview Lab → · Contrast checker → · Palette generator →

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