#020C2F#020C2F

#020C2F is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.3% C 0.072 H 263.9°. Best body text is #FFFFFF at 19.16:1 contrast (WCAG AA passes).

Color values

HEX#020C2F
RGBrgb(2, 12, 47)
HSLhsl(227, 92%, 10%)
HSVhsv(227, 96%, 18%)
CMYKcmyk(95.7%, 74.5%, 0%, 81.6%)
CIE-LABlab(4.34, 8.69, -23.58)
CIE-LCHlch(4.34, 25.13, 290.24°)
OKLaboklab(17.31% -0.0077 -0.0721)
OKLCHoklch(17.31% 0.072 263.9)
XYZxyz(0.6694, 0.4810, 2.7463)
Luminance0.0048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020C2F #2F2502
analogous
#02232F #020C2F #0F022F
triadic
#020C2F #2F020C #0C2F02
tetradic
#020C2F #2F0223 #2F2502 #022F0F
square
#020C2F #2F0223 #2F2502 #022F0F
split-complementary
#020C2F #2F0F02 #232F02
monochromatic
#01071D #01071D #020C2F #041B6A #072AA4

Accessibility & contrast

On white

19.16
#020C2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#020C2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020C2F
19.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020C2F#FFFFFF#000000##FFFFFF
##020C2F1.0019.161.1019.16
#FFFFFF19.161.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001130
Deuteranopia (green-blind)
#000D2E
Tritanopia (blue-blind)
#00151B
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #020c2f;
/* rgb */ color: rgb(2, 12, 47);
/* oklch */ color: oklch(17.3% 0.072 263.9);
Tailwind
colors: {
  custom: {
    50: '#494c68',
    500: '#020c2f',
    950: '#000000',
  },
}
SCSS
$custom: #020c2f;
$custom-light: #494c68;
$custom-dark: #000000;
JSON
{
  "hex": "#020c2f",
  "rgb": {
    "r": 2,
    "g": 12,
    "b": 47
  },
  "hsl": {
    "h": 226.667,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.17305,
    "c": 0.07249,
    "h": 263.9
  },
  "luminance": 0.00481
}

Semantic roles & 50–950 ramp

primary
#020C2F
secondary
#746019
accent
#CF29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #020C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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