#020C2B#020C2B

#020C2B is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.9% C 0.066 H 263.1°. Best body text is #FFFFFF at 19.27:1 contrast (WCAG AA passes).

Color values

HEX#020C2B
RGBrgb(2, 12, 43)
HSLhsl(225, 91%, 9%)
HSVhsv(225, 95%, 17%)
CMYKcmyk(95.3%, 72.1%, 0%, 83.1%)
CIE-LABlab(4.07, 6.74, -21.01)
CIE-LCHlch(4.07, 22.07, 287.78°)
OKLaboklab(16.85% -0.0079 -0.0653)
OKLCHoklch(16.85% 0.066 263.1)
XYZxyz(0.5924, 0.4502, 2.3407)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020C2B #2B2102
analogous
#02212B #020C2B #0D022B
triadic
#020C2B #2B020C #0C2B02
tetradic
#020C2B #2B0221 #2B2102 #022B0D
square
#020C2B #2B0221 #2B2102 #022B0D
split-complementary
#020C2B #2B0D02 #212B02
monochromatic
#01081D #01081D #020C2B #051C65 #072DA0

Accessibility & contrast

On white

19.27
#020C2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #020C2B
19.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020C2B#FFFFFF#000000##FFFFFF
##020C2B1.0019.271.0919.27
#FFFFFF19.271.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #020c2b;
/* rgb */ color: rgb(2, 12, 43);
/* oklch */ color: oklch(16.9% 0.066 263.1);
Tailwind
colors: {
  custom: {
    50: '#484c64',
    500: '#020c2b',
    950: '#000000',
  },
}
SCSS
$custom: #020c2b;
$custom-light: #484c64;
$custom-dark: #000000;
JSON
{
  "hex": "#020c2b",
  "rgb": {
    "r": 2,
    "g": 12,
    "b": 43
  },
  "hsl": {
    "h": 225.366,
    "s": 91.111,
    "l": 8.824
  },
  "oklch": {
    "l": 0.16853,
    "c": 0.06579,
    "h": 263.1
  },
  "luminance": 0.0045
}

Semantic roles & 50–950 ramp

primary
#020C2B
secondary
#705B19
accent
#CB29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #020C2B

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

Preview Lab → · Contrast checker → · Palette generator →

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