#020A31#020A31

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

Color values

HEX#020A31
RGBrgb(2, 10, 49)
HSLhsl(230, 92%, 10%)
HSVhsv(230, 96%, 19%)
CMYKcmyk(95.9%, 79.6%, 0%, 80.8%)
CIE-LABlab(4.08, 10.59, -25.49)
CIE-LCHlch(4.08, 27.60, 292.56°)
OKLaboklab(17.08% -0.0066 -0.0784)
OKLCHoklch(17.08% 0.079 265.2)
XYZxyz(0.6878, 0.4517, 2.9561)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020A31 #312902
analogous
#022231 #020A31 #110231
triadic
#020A31 #31020A #0A3102
tetradic
#020A31 #310222 #312902 #023111
square
#020A31 #310222 #312902 #023111
split-complementary
#020A31 #311102 #223102
monochromatic
#01061D #01061D #020A31 #04166C #0722A7

Accessibility & contrast

On white

19.26
#020A31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #020A31
19.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020A31#FFFFFF#000000##FFFFFF
##020A311.0019.261.0919.26
#FFFFFF19.261.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001132
Deuteranopia (green-blind)
#000C30
Tritanopia (blue-blind)
#00151C
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #020a31;
/* rgb */ color: rgb(2, 10, 49);
/* oklch */ color: oklch(17.1% 0.079 265.2);
Tailwind
colors: {
  custom: {
    50: '#4a4b69',
    500: '#020a31',
    950: '#000000',
  },
}
SCSS
$custom: #020a31;
$custom-light: #4a4b69;
$custom-dark: #000000;
JSON
{
  "hex": "#020a31",
  "rgb": {
    "r": 2,
    "g": 10,
    "b": 49
  },
  "hsl": {
    "h": 229.787,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.17075,
    "c": 0.07868,
    "h": 265.2
  },
  "luminance": 0.00452
}

Semantic roles & 50–950 ramp

primary
#020A31
secondary
#756619
accent
#DB29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #020A31

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

Preview Lab → · Contrast checker → · Palette generator →

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