#020A39#020A39

#020A39 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.1% C 0.091 H 265.5°. Best body text is #FFFFFF at 19.00:1 contrast (WCAG AA passes).

Color values

HEX#020A39
RGBrgb(2, 10, 57)
HSLhsl(231, 93%, 12%)
HSVhsv(231, 96%, 22%)
CMYKcmyk(96.5%, 82.5%, 0%, 77.6%)
CIE-LABlab(4.75, 15.25, -30.30)
CIE-LCHlch(4.75, 33.92, 296.71°)
OKLaboklab(18.09% -0.0071 -0.0908)
OKLCHoklch(18.09% 0.091 265.5)
XYZxyz(0.8718, 0.5253, 3.9255)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020A39 #393102
analogous
#022639 #020A39 #160239
triadic
#020A39 #39020A #0A3902
tetradic
#020A39 #390226 #393102 #023916
square
#020A39 #390226 #393102 #023916
split-complementary
#020A39 #391602 #263902
monochromatic
#01051E #01051E #020A39 #041474 #061FAF

Accessibility & contrast

On white

19.00
#020A39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#020A39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020A39
19.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020A39#FFFFFF#000000##FFFFFF
##020A391.0019.001.1119.00
#FFFFFF19.001.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF19.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00133A
Deuteranopia (green-blind)
#000D38
Tritanopia (blue-blind)
#001720
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #020a39;
/* rgb */ color: rgb(2, 10, 57);
/* oklch */ color: oklch(18.1% 0.091 265.5);
Tailwind
colors: {
  custom: {
    50: '#4d4a70',
    500: '#020a39',
    950: '#000000',
  },
}
SCSS
$custom: #020a39;
$custom-light: #4d4a70;
$custom-dark: #000000;
JSON
{
  "hex": "#020a39",
  "rgb": {
    "r": 2,
    "g": 10,
    "b": 57
  },
  "hsl": {
    "h": 231.273,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.18093,
    "c": 0.09108,
    "h": 265.5
  },
  "luminance": 0.00525
}

Semantic roles & 50–950 ramp

primary
#020A39
secondary
#7D6E1A
accent
#E029FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #020A39

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

Preview Lab → · Contrast checker → · Palette generator →

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