#020C33#020C33

#020C33 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.8% C 0.079 H 264.4°. Best body text is #FFFFFF at 19.04:1 contrast (WCAG AA passes).

Color values

HEX#020C33
RGBrgb(2, 12, 51)
HSLhsl(228, 92%, 10%)
HSVhsv(228, 96%, 20%)
CMYKcmyk(96.1%, 76.5%, 0%, 80%)
CIE-LABlab(4.65, 10.83, -26.06)
CIE-LCHlch(4.65, 28.22, 292.58°)
OKLaboklab(17.77% -0.0077 -0.0786)
OKLCHoklch(17.77% 0.079 264.4)
XYZxyz(0.7538, 0.5148, 3.1910)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020C33 #332902
analogous
#022433 #020C33 #100233
triadic
#020C33 #33020C #0C3302
tetradic
#020C33 #330224 #332902 #023310
square
#020C33 #330224 #332902 #023310
split-complementary
#020C33 #331002 #243302
monochromatic
#01071D #01071D #020C33 #041A6E #0728A9

Accessibility & contrast

On white

19.04
#020C33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #020C33
19.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020C33#FFFFFF#000000##FFFFFF
##020C331.0019.041.1019.04
#FFFFFF19.041.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001234
Deuteranopia (green-blind)
#000E32
Tritanopia (blue-blind)
#00161D
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #020c33;
/* rgb */ color: rgb(2, 12, 51);
/* oklch */ color: oklch(17.8% 0.079 264.4);
Tailwind
colors: {
  custom: {
    50: '#4b4c6b',
    500: '#020c33',
    950: '#000000',
  },
}
SCSS
$custom: #020c33;
$custom-light: #4b4c6b;
$custom-dark: #000000;
JSON
{
  "hex": "#020c33",
  "rgb": {
    "r": 2,
    "g": 12,
    "b": 51
  },
  "hsl": {
    "h": 227.755,
    "s": 92.453,
    "l": 10.392
  },
  "oklch": {
    "l": 0.17775,
    "c": 0.07899,
    "h": 264.4
  },
  "luminance": 0.00515
}

Semantic roles & 50–950 ramp

primary
#020C33
secondary
#77641A
accent
#D329FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #020C33

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

Preview Lab → · Contrast checker → · Palette generator →

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