#020F2F#020F2F

#020F2F is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.1% C 0.068 H 261.7°. Best body text is #FFFFFF at 18.88:1 contrast (WCAG AA passes).

Color values

HEX#020F2F
RGBrgb(2, 15, 47)
HSLhsl(223, 92%, 10%)
HSVhsv(223, 96%, 18%)
CMYKcmyk(95.7%, 68.1%, 0%, 81.6%)
CIE-LABlab(5.06, 7.24, -22.44)
CIE-LCHlch(5.06, 23.58, 287.89°)
OKLaboklab(18.07% -0.0098 -0.0672)
OKLCHoklch(18.07% 0.068 261.7)
XYZxyz(0.7088, 0.5597, 2.7594)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020F2F #2F2202
analogous
#02262F #020F2F #0C022F
triadic
#020F2F #2F020F #0F2F02
tetradic
#020F2F #2F0226 #2F2202 #022F0C
square
#020F2F #2F0226 #2F2202 #022F0C
split-complementary
#020F2F #2F0C02 #262F02
monochromatic
#01091D #01091D #020F2F #04226A #0734A4

Accessibility & contrast

On white

18.88
#020F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #020F2F
18.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020F2F#FFFFFF#000000##FFFFFF
##020F2F1.0018.881.1118.88
#FFFFFF18.881.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001330
Deuteranopia (green-blind)
#000F2E
Tritanopia (blue-blind)
#00171C
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #020f2f;
/* rgb */ color: rgb(2, 15, 47);
/* oklch */ color: oklch(18.1% 0.068 261.7);
Tailwind
colors: {
  custom: {
    50: '#494d68',
    500: '#020f2f',
    950: '#000000',
  },
}
SCSS
$custom: #020f2f;
$custom-light: #494d68;
$custom-dark: #000000;
JSON
{
  "hex": "#020f2f",
  "rgb": {
    "r": 2,
    "g": 15,
    "b": 47
  },
  "hsl": {
    "h": 222.667,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.18066,
    "c": 0.06787,
    "h": 261.7
  },
  "luminance": 0.0056
}

Semantic roles & 50–950 ramp

primary
#020F2F
secondary
#745A19
accent
#C129FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #020F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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