#020D2F#020D2F

#020D2F is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.6% C 0.071 H 263.3°. Best body text is #FFFFFF at 19.07:1 contrast (WCAG AA passes).

Color values

HEX#020D2F
RGBrgb(2, 13, 47)
HSLhsl(225, 92%, 10%)
HSVhsv(225, 96%, 18%)
CMYKcmyk(95.7%, 72.3%, 0%, 81.6%)
CIE-LABlab(4.57, 8.24, -23.22)
CIE-LCHlch(4.57, 24.64, 289.53°)
OKLaboklab(17.55% -0.0083 -0.0705)
OKLCHoklch(17.55% 0.071 263.3)
XYZxyz(0.6819, 0.5059, 2.7505)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020D2F #2F2402
analogous
#02242F #020D2F #0D022F
triadic
#020D2F #2F020D #0D2F02
tetradic
#020D2F #2F0224 #2F2402 #022F0D
square
#020D2F #2F0224 #2F2402 #022F0D
split-complementary
#020D2F #2F0D02 #242F02
monochromatic
#01081D #01081D #020D2F #041D6A #072DA4

Accessibility & contrast

On white

19.07
#020D2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#020D2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020D2F
19.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020D2F#FFFFFF#000000##FFFFFF
##020D2F1.0019.071.1019.07
#FFFFFF19.071.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001230
Deuteranopia (green-blind)
#000E2E
Tritanopia (blue-blind)
#00161C
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #020d2f;
/* rgb */ color: rgb(2, 13, 47);
/* oklch */ color: oklch(17.6% 0.071 263.3);
Tailwind
colors: {
  custom: {
    50: '#494c68',
    500: '#020d2f',
    950: '#000000',
  },
}
SCSS
$custom: #020d2f;
$custom-light: #494c68;
$custom-dark: #000000;
JSON
{
  "hex": "#020d2f",
  "rgb": {
    "r": 2,
    "g": 13,
    "b": 47
  },
  "hsl": {
    "h": 225.333,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.17553,
    "c": 0.07096,
    "h": 263.3
  },
  "luminance": 0.00506
}

Semantic roles & 50–950 ramp

primary
#020D2F
secondary
#745E19
accent
#CB29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #020D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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