#021031#021031

#021031 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.5% C 0.070 H 261.5°. Best body text is #FFFFFF at 18.73:1 contrast (WCAG AA passes).

Color values

HEX#021031
RGBrgb(2, 16, 49)
HSLhsl(222, 92%, 10%)
HSVhsv(222, 96%, 19%)
CMYKcmyk(95.9%, 67.3%, 0%, 80.8%)
CIE-LABlab(5.47, 7.76, -23.27)
CIE-LCHlch(5.47, 24.53, 288.43°)
OKLaboklab(18.54% -0.0103 -0.0689)
OKLCHoklch(18.54% 0.07 261.5)
XYZxyz(0.7645, 0.6051, 2.9816)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021031 #312302
analogous
#022731 #021031 #0C0231
triadic
#021031 #310210 #103102
tetradic
#021031 #310227 #312302 #02310C
square
#021031 #310227 #312302 #02310C
split-complementary
#021031 #310C02 #273102
monochromatic
#010A1D #010A1D #021031 #04236C #0736A7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##021031#FFFFFF#000000##FFFFFF
##0210311.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)
#001432
Deuteranopia (green-blind)
#001030
Tritanopia (blue-blind)
#00181E
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #021031;
/* rgb */ color: rgb(2, 16, 49);
/* oklch */ color: oklch(18.5% 0.070 261.5);
Tailwind
colors: {
  custom: {
    50: '#4a4e69',
    500: '#021031',
    950: '#000000',
  },
}
SCSS
$custom: #021031;
$custom-light: #4a4e69;
$custom-dark: #000000;
JSON
{
  "hex": "#021031",
  "rgb": {
    "r": 2,
    "g": 16,
    "b": 49
  },
  "hsl": {
    "h": 222.128,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.18539,
    "c": 0.06967,
    "h": 261.5
  },
  "luminance": 0.00605
}

Semantic roles & 50–950 ramp

primary
#021031
secondary
#755A19
accent
#BF29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #021031

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

Preview Lab → · Contrast checker → · Palette generator →

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