#020F31#020F31

#020F31 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.3% C 0.071 H 262.3°. Best body text is #FFFFFF at 18.83:1 contrast (WCAG AA passes).

Color values

HEX#020F31
RGBrgb(2, 15, 49)
HSLhsl(223, 92%, 10%)
HSVhsv(223, 96%, 19%)
CMYKcmyk(95.9%, 69.4%, 0%, 80.8%)
CIE-LABlab(5.20, 8.29, -23.69)
CIE-LCHlch(5.20, 25.10, 289.28°)
OKLaboklab(18.28% -0.0096 -0.0706)
OKLCHoklch(18.28% 0.071 262.3)
XYZxyz(0.7500, 0.5762, 2.9768)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020F31 #312402
analogous
#022731 #020F31 #0C0231
triadic
#020F31 #31020F #0F3102
tetradic
#020F31 #310227 #312402 #02310C
square
#020F31 #310227 #312402 #02310C
split-complementary
#020F31 #310C02 #273102
monochromatic
#01091D #01091D #020F31 #04216C #0733A7

Accessibility & contrast

On white

18.83
#020F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#020F31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020F31
18.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020F31#FFFFFF#000000##FFFFFF
##020F311.0018.831.1218.83
#FFFFFF18.831.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001432
Deuteranopia (green-blind)
#000F30
Tritanopia (blue-blind)
#00181E
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #020f31;
/* rgb */ color: rgb(2, 15, 49);
/* oklch */ color: oklch(18.3% 0.071 262.3);
Tailwind
colors: {
  custom: {
    50: '#4a4d69',
    500: '#020f31',
    950: '#000000',
  },
}
SCSS
$custom: #020f31;
$custom-light: #4a4d69;
$custom-dark: #000000;
JSON
{
  "hex": "#020f31",
  "rgb": {
    "r": 2,
    "g": 15,
    "b": 49
  },
  "hsl": {
    "h": 223.404,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.1828,
    "c": 0.07121,
    "h": 262.3
  },
  "luminance": 0.00576
}

Semantic roles & 50–950 ramp

primary
#020F31
secondary
#755C19
accent
#C429FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #020F31

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

Preview Lab → · Contrast checker → · Palette generator →

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