#020C2D#020C2D

#020C2D is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.1% C 0.069 H 263.6°. Best body text is #FFFFFF at 19.21:1 contrast (WCAG AA passes).

Color values

HEX#020C2D
RGBrgb(2, 12, 45)
HSLhsl(226, 91%, 9%)
HSVhsv(226, 96%, 18%)
CMYKcmyk(95.6%, 73.3%, 0%, 82.4%)
CIE-LABlab(4.20, 7.69, -22.31)
CIE-LCHlch(4.20, 23.60, 289.03°)
OKLaboklab(17.08% -0.0077 -0.0687)
OKLCHoklch(17.08% 0.069 263.6)
XYZxyz(0.6300, 0.4652, 2.5387)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020C2D #2D2302
analogous
#02222D #020C2D #0E022D
triadic
#020C2D #2D020C #0C2D02
tetradic
#020C2D #2D0222 #2D2302 #022D0E
square
#020C2D #2D0222 #2D2302 #022D0E
split-complementary
#020C2D #2D0E02 #222D02
monochromatic
#01081D #01081D #020C2D #051C68 #072BA2

Accessibility & contrast

On white

19.21
#020C2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #020C2D
19.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020C2D#FFFFFF#000000##FFFFFF
##020C2D1.0019.211.0919.21
#FFFFFF19.211.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112E
Deuteranopia (green-blind)
#000D2C
Tritanopia (blue-blind)
#00151A
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #020c2d;
/* rgb */ color: rgb(2, 12, 45);
/* oklch */ color: oklch(17.1% 0.069 263.6);
Tailwind
colors: {
  custom: {
    50: '#494c66',
    500: '#020c2d',
    950: '#000000',
  },
}
SCSS
$custom: #020c2d;
$custom-light: #494c66;
$custom-dark: #000000;
JSON
{
  "hex": "#020c2d",
  "rgb": {
    "r": 2,
    "g": 12,
    "b": 45
  },
  "hsl": {
    "h": 226.047,
    "s": 91.489,
    "l": 9.216
  },
  "oklch": {
    "l": 0.17077,
    "c": 0.06917,
    "h": 263.6
  },
  "luminance": 0.00465
}

Semantic roles & 50–950 ramp

primary
#020C2D
secondary
#725D19
accent
#CD29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #020C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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