#020D39#020D39

#020D39 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.7% C 0.087 H 264.5°. Best body text is #FFFFFF at 18.76:1 contrast (WCAG AA passes).

Color values

HEX#020D39
RGBrgb(2, 13, 57)
HSLhsl(228, 93%, 12%)
HSVhsv(228, 96%, 22%)
CMYKcmyk(96.5%, 77.2%, 0%, 77.6%)
CIE-LABlab(5.38, 13.89, -29.27)
CIE-LCHlch(5.38, 32.40, 295.39°)
OKLaboklab(18.73% -0.0083 -0.0866)
OKLCHoklch(18.73% 0.087 264.5)
XYZxyz(0.9072, 0.5960, 3.9373)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020D39 #392E02
analogous
#022939 #020D39 #130239
triadic
#020D39 #39020D #0D3902
tetradic
#020D39 #390229 #392E02 #023913
square
#020D39 #390229 #392E02 #023913
split-complementary
#020D39 #391302 #293902
monochromatic
#01071E #01071E #020D39 #041A74 #0628AF

Accessibility & contrast

On white

18.76
#020D39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#020D39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020D39
18.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020D39#FFFFFF#000000##FFFFFF
##020D391.0018.761.1218.76
#FFFFFF18.761.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153A
Deuteranopia (green-blind)
#000F38
Tritanopia (blue-blind)
#001921
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #020d39;
/* rgb */ color: rgb(2, 13, 57);
/* oklch */ color: oklch(18.7% 0.087 264.5);
Tailwind
colors: {
  custom: {
    50: '#4d4c70',
    500: '#020d39',
    950: '#000000',
  },
}
SCSS
$custom: #020d39;
$custom-light: #4d4c70;
$custom-dark: #000000;
JSON
{
  "hex": "#020d39",
  "rgb": {
    "r": 2,
    "g": 13,
    "b": 57
  },
  "hsl": {
    "h": 228,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.18725,
    "c": 0.08702,
    "h": 264.5
  },
  "luminance": 0.00596
}

Semantic roles & 50–950 ramp

primary
#020D39
secondary
#7D691A
accent
#D429FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #020D39

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

Preview Lab → · Contrast checker → · Palette generator →

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