#020F2D#020F2D

#020F2D is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.9% C 0.064 H 261.1°. Best body text is #FFFFFF at 18.94:1 contrast (WCAG AA passes).

Color values

HEX#020F2D
RGBrgb(2, 15, 45)
HSLhsl(222, 91%, 9%)
HSVhsv(222, 96%, 18%)
CMYKcmyk(95.6%, 66.7%, 0%, 82.4%)
CIE-LABlab(4.91, 6.24, -21.18)
CIE-LCHlch(4.91, 22.08, 286.42°)
OKLaboklab(17.86% -0.01 -0.0637)
OKLCHoklch(17.86% 0.064 261.1)
XYZxyz(0.6693, 0.5439, 2.5518)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020F2D #2D2002
analogous
#02252D #020F2D #0B022D
triadic
#020F2D #2D020F #0F2D02
tetradic
#020F2D #2D0225 #2D2002 #022D0B
square
#020F2D #2D0225 #2D2002 #022D0B
split-complementary
#020F2D #2D0B02 #252D02
monochromatic
#010A1D #010A1D #020F2D #052368 #0736A2

Accessibility & contrast

On white

18.94
#020F2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #020F2D
18.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020F2D#FFFFFF#000000##FFFFFF
##020F2D1.0018.941.1118.94
#FFFFFF18.941.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132E
Deuteranopia (green-blind)
#000F2C
Tritanopia (blue-blind)
#00161B
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #020f2d;
/* rgb */ color: rgb(2, 15, 45);
/* oklch */ color: oklch(17.9% 0.064 261.1);
Tailwind
colors: {
  custom: {
    50: '#494d66',
    500: '#020f2d',
    950: '#000000',
  },
}
SCSS
$custom: #020f2d;
$custom-light: #494d66;
$custom-dark: #000000;
JSON
{
  "hex": "#020f2d",
  "rgb": {
    "r": 2,
    "g": 15,
    "b": 45
  },
  "hsl": {
    "h": 221.86,
    "s": 91.489,
    "l": 9.216
  },
  "oklch": {
    "l": 0.17857,
    "c": 0.06448,
    "h": 261.1
  },
  "luminance": 0.00544
}

Semantic roles & 50–950 ramp

primary
#020F2D
secondary
#725719
accent
#BE29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #020F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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