#020C31#020C31

#020C31 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.5% C 0.076 H 264.2°. Best body text is #FFFFFF at 19.10:1 contrast (WCAG AA passes).

Color values

HEX#020C31
RGBrgb(2, 12, 49)
HSLhsl(227, 92%, 10%)
HSVhsv(227, 96%, 19%)
CMYKcmyk(95.9%, 75.5%, 0%, 80.8%)
CIE-LABlab(4.49, 9.74, -24.83)
CIE-LCHlch(4.49, 26.67, 291.43°)
OKLaboklab(17.54% -0.0077 -0.0754)
OKLCHoklch(17.54% 0.076 264.2)
XYZxyz(0.7107, 0.4975, 2.9637)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020C31 #312702
analogous
#022431 #020C31 #0F0231
triadic
#020C31 #31020C #0C3102
tetradic
#020C31 #310224 #312702 #02310F
square
#020C31 #310224 #312702 #02310F
split-complementary
#020C31 #310F02 #243102
monochromatic
#01071D #01071D #020C31 #041A6C #0729A7

Accessibility & contrast

On white

19.10
#020C31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #020C31
19.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020C31#FFFFFF#000000##FFFFFF
##020C311.0019.101.1019.10
#FFFFFF19.101.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001232
Deuteranopia (green-blind)
#000D30
Tritanopia (blue-blind)
#00161C
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #020c31;
/* rgb */ color: rgb(2, 12, 49);
/* oklch */ color: oklch(17.5% 0.076 264.2);
Tailwind
colors: {
  custom: {
    50: '#4a4c69',
    500: '#020c31',
    950: '#000000',
  },
}
SCSS
$custom: #020c31;
$custom-light: #4a4c69;
$custom-dark: #000000;
JSON
{
  "hex": "#020c31",
  "rgb": {
    "r": 2,
    "g": 12,
    "b": 49
  },
  "hsl": {
    "h": 227.234,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.17538,
    "c": 0.07576,
    "h": 264.2
  },
  "luminance": 0.00498
}

Semantic roles & 50–950 ramp

primary
#020C31
secondary
#756219
accent
#D129FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #020C31

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

Preview Lab → · Contrast checker → · Palette generator →

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