#020C29#020C29

#020C29 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.6% C 0.062 H 262.6°. Best body text is #FFFFFF at 19.32:1 contrast (WCAG AA passes).

Color values

HEX#020C29
RGBrgb(2, 12, 41)
HSLhsl(225, 91%, 8%)
HSVhsv(225, 95%, 16%)
CMYKcmyk(95.1%, 70.7%, 0%, 83.9%)
CIE-LABlab(3.94, 5.83, -19.70)
CIE-LCHlch(3.94, 20.55, 286.48°)
OKLaboklab(16.63% -0.008 -0.0618)
OKLCHoklch(16.63% 0.062 262.6)
XYZxyz(0.5566, 0.4359, 2.1522)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020C29 #291F02
analogous
#021F29 #020C29 #0B0229
triadic
#020C29 #29020C #0C2902
tetradic
#020C29 #29021F #291F02 #02290B
square
#020C29 #29021F #291F02 #02290B
split-complementary
#020C29 #290B02 #1F2902
monochromatic
#01091D #01091D #020C29 #051D63 #082E9E

Accessibility & contrast

On white

19.32
#020C29 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #020C29
19.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020C29#FFFFFF#000000##FFFFFF
##020C291.0019.321.0919.32
#FFFFFF19.321.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102A
Deuteranopia (green-blind)
#000C28
Tritanopia (blue-blind)
#001318
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #020c29;
/* rgb */ color: rgb(2, 12, 41);
/* oklch */ color: oklch(16.6% 0.062 262.6);
Tailwind
colors: {
  custom: {
    50: '#484c63',
    500: '#020c29',
    950: '#000000',
  },
}
SCSS
$custom: #020c29;
$custom-light: #484c63;
$custom-dark: #000000;
JSON
{
  "hex": "#020c29",
  "rgb": {
    "r": 2,
    "g": 12,
    "b": 41
  },
  "hsl": {
    "h": 224.615,
    "s": 90.698,
    "l": 8.431
  },
  "oklch": {
    "l": 0.16635,
    "c": 0.06237,
    "h": 262.6
  },
  "luminance": 0.00436
}

Semantic roles & 50–950 ramp

primary
#020C29
secondary
#6E5819
accent
#C829FF
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #020C29

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

Preview Lab → · Contrast checker → · Palette generator →

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