#020B31#020B31

#020B31 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.3% C 0.077 H 264.7°. Best body text is #FFFFFF at 19.18:1 contrast (WCAG AA passes).

Color values

HEX#020B31
RGBrgb(2, 11, 49)
HSLhsl(229, 92%, 10%)
HSVhsv(229, 96%, 19%)
CMYKcmyk(95.9%, 77.6%, 0%, 80.8%)
CIE-LABlab(4.28, 10.18, -25.17)
CIE-LCHlch(4.28, 27.15, 292.02°)
OKLaboklab(17.3% -0.0071 -0.0769)
OKLCHoklch(17.3% 0.077 264.7)
XYZxyz(0.6989, 0.4739, 2.9598)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020B31 #312802
analogous
#022231 #020B31 #110231
triadic
#020B31 #31020B #0B3102
tetradic
#020B31 #310222 #312802 #023111
square
#020B31 #310222 #312802 #023111
split-complementary
#020B31 #311102 #223102
monochromatic
#01071D #01071D #020B31 #04186C #0725A7

Accessibility & contrast

On white

19.18
#020B31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#020B31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020B31
19.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020B31#FFFFFF#000000##FFFFFF
##020B311.0019.181.0919.18
#FFFFFF19.181.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001132
Deuteranopia (green-blind)
#000D30
Tritanopia (blue-blind)
#00151C
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #020b31;
/* rgb */ color: rgb(2, 11, 49);
/* oklch */ color: oklch(17.3% 0.077 264.7);
Tailwind
colors: {
  custom: {
    50: '#4a4b69',
    500: '#020b31',
    950: '#000000',
  },
}
SCSS
$custom: #020b31;
$custom-light: #4a4b69;
$custom-dark: #000000;
JSON
{
  "hex": "#020b31",
  "rgb": {
    "r": 2,
    "g": 11,
    "b": 49
  },
  "hsl": {
    "h": 228.511,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.17303,
    "c": 0.07724,
    "h": 264.7
  },
  "luminance": 0.00474
}

Semantic roles & 50–950 ramp

primary
#020B31
secondary
#756419
accent
#D629FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #020B31

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

Preview Lab → · Contrast checker → · Palette generator →

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