#020C2A#020C2A

#020C2A is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.7% C 0.064 H 262.9°. Best body text is #FFFFFF at 19.29:1 contrast (WCAG AA passes).

Color values

HEX#020C2A
RGBrgb(2, 12, 42)
HSLhsl(225, 91%, 9%)
HSVhsv(225, 95%, 16%)
CMYKcmyk(95.2%, 71.4%, 0%, 83.5%)
CIE-LABlab(4.00, 6.28, -20.36)
CIE-LCHlch(4.00, 21.31, 287.14°)
OKLaboklab(16.74% -0.0079 -0.0636)
OKLCHoklch(16.74% 0.064 262.9)
XYZxyz(0.5743, 0.4429, 2.2453)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020C2A #2A2002
analogous
#02202A #020C2A #0C022A
triadic
#020C2A #2A020C #0C2A02
tetradic
#020C2A #2A0220 #2A2002 #022A0C
square
#020C2A #2A0220 #2A2002 #022A0C
split-complementary
#020C2A #2A0C02 #202A02
monochromatic
#01081D #01081D #020C2A #051D64 #082D9F

Accessibility & contrast

On white

19.29
#020C2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #020C2A
19.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020C2A#FFFFFF#000000##FFFFFF
##020C2A1.0019.291.0919.29
#FFFFFF19.291.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102B
Deuteranopia (green-blind)
#000C29
Tritanopia (blue-blind)
#001419
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #020c2a;
/* rgb */ color: rgb(2, 12, 42);
/* oklch */ color: oklch(16.7% 0.064 262.9);
Tailwind
colors: {
  custom: {
    50: '#484c63',
    500: '#020c2a',
    950: '#000000',
  },
}
SCSS
$custom: #020c2a;
$custom-light: #484c63;
$custom-dark: #000000;
JSON
{
  "hex": "#020c2a",
  "rgb": {
    "r": 2,
    "g": 12,
    "b": 42
  },
  "hsl": {
    "h": 225,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.16743,
    "c": 0.06408,
    "h": 262.9
  },
  "luminance": 0.00443
}

Semantic roles & 50–950 ramp

primary
#020C2A
secondary
#6F5A19
accent
#C929FF
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #020C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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