#020D34#020D34

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

Color values

HEX#020D34
RGBrgb(2, 13, 52)
HSLhsl(227, 93%, 11%)
HSVhsv(227, 96%, 20%)
CMYKcmyk(96.2%, 75%, 0%, 79.6%)
CIE-LABlab(4.96, 10.94, -26.30)
CIE-LCHlch(4.96, 28.49, 292.59°)
OKLaboklab(18.13% -0.0082 -0.0787)
OKLCHoklch(18.13% 0.079 264)
XYZxyz(0.7886, 0.5486, 3.3125)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020D34 #342902
analogous
#022634 #020D34 #100234
triadic
#020D34 #34020D #0D3402
tetradic
#020D34 #340226 #342902 #023410
square
#020D34 #340226 #342902 #023410
split-complementary
#020D34 #341002 #263402
monochromatic
#01071D #01071D #020D34 #041C6F #072AAA

Accessibility & contrast

On white

18.92
#020D34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #020D34
18.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020D34#FFFFFF#000000##FFFFFF
##020D341.0018.921.1118.92
#FFFFFF18.921.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001335
Deuteranopia (green-blind)
#000E33
Tritanopia (blue-blind)
#00171E
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #020d34;
/* rgb */ color: rgb(2, 13, 52);
/* oklch */ color: oklch(18.1% 0.079 264.0);
Tailwind
colors: {
  custom: {
    50: '#4b4c6c',
    500: '#020d34',
    950: '#000000',
  },
}
SCSS
$custom: #020d34;
$custom-light: #4b4c6c;
$custom-dark: #000000;
JSON
{
  "hex": "#020d34",
  "rgb": {
    "r": 2,
    "g": 13,
    "b": 52
  },
  "hsl": {
    "h": 226.8,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.18127,
    "c": 0.07913,
    "h": 264
  },
  "luminance": 0.00549
}

Semantic roles & 50–950 ramp

primary
#020D34
secondary
#78631A
accent
#D029FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010107
muted
#77777A

Preview Lab

Preview with #020D34

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

Preview Lab → · Contrast checker → · Palette generator →

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