#020E31#020E31

#020E31 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.0% C 0.073 H 263.0°. Best body text is #FFFFFF at 18.92:1 contrast (WCAG AA passes).

Color values

HEX#020E31
RGBrgb(2, 14, 49)
HSLhsl(225, 92%, 10%)
HSVhsv(225, 96%, 19%)
CMYKcmyk(95.9%, 71.4%, 0%, 80.8%)
CIE-LABlab(4.96, 8.80, -24.09)
CIE-LCHlch(4.96, 25.65, 290.07°)
OKLaboklab(18.03% -0.0089 -0.0722)
OKLCHoklch(18.03% 0.073 263)
XYZxyz(0.7363, 0.5486, 2.9722)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020E31 #312502
analogous
#022531 #020E31 #0E0231
triadic
#020E31 #31020E #0E3102
tetradic
#020E31 #310225 #312502 #02310E
square
#020E31 #310225 #312502 #02310E
split-complementary
#020E31 #310E02 #253102
monochromatic
#01081D #01081D #020E31 #041F6C #0730A7

Accessibility & contrast

On white

18.92
#020E31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#020E31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020E31
18.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020E31#FFFFFF#000000##FFFFFF
##020E311.0018.921.1118.92
#FFFFFF18.921.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001332
Deuteranopia (green-blind)
#000E30
Tritanopia (blue-blind)
#00171D
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #020e31;
/* rgb */ color: rgb(2, 14, 49);
/* oklch */ color: oklch(18.0% 0.073 263.0);
Tailwind
colors: {
  custom: {
    50: '#4a4d69',
    500: '#020e31',
    950: '#000000',
  },
}
SCSS
$custom: #020e31;
$custom-light: #4a4d69;
$custom-dark: #000000;
JSON
{
  "hex": "#020e31",
  "rgb": {
    "r": 2,
    "g": 14,
    "b": 49
  },
  "hsl": {
    "h": 224.681,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.18027,
    "c": 0.07274,
    "h": 263
  },
  "luminance": 0.00549
}

Semantic roles & 50–950 ramp

primary
#020E31
secondary
#755E19
accent
#C829FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #020E31

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

Preview Lab → · Contrast checker → · Palette generator →

#020E31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva