#021339#021339

#021339 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.1% C 0.078 H 261.4°. Best body text is #FFFFFF at 18.18:1 contrast (WCAG AA passes).

Color values

HEX#021339
RGBrgb(2, 19, 57)
HSLhsl(221, 93%, 12%)
HSVhsv(221, 96%, 22%)
CMYKcmyk(96.5%, 66.7%, 0%, 77.6%)
CIE-LABlab(6.99, 10.32, -26.66)
CIE-LCHlch(6.99, 28.59, 291.17°)
OKLaboklab(20.15% -0.0117 -0.0773)
OKLCHoklch(20.15% 0.078 261.4)
XYZxyz(0.9962, 0.7739, 3.9670)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021339 #392802
analogous
#022F39 #021339 #0D0239
triadic
#021339 #390213 #133902
tetradic
#021339 #39022F #392802 #02390D
square
#021339 #39022F #392802 #02390D
split-complementary
#021339 #390D02 #2F3902
monochromatic
#010A1E #010A1E #021339 #042774 #063AAF

Accessibility & contrast

On white

18.18
#021339 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#021339 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021339
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021339#FFFFFF#000000##FFFFFF
##0213391.0018.181.1518.18
#FFFFFF18.181.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183A
Deuteranopia (green-blind)
#001338
Tritanopia (blue-blind)
#001D23
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #021339;
/* rgb */ color: rgb(2, 19, 57);
/* oklch */ color: oklch(20.1% 0.078 261.4);
Tailwind
colors: {
  custom: {
    50: '#4d5070',
    500: '#021339',
    950: '#000000',
  },
}
SCSS
$custom: #021339;
$custom-light: #4d5070;
$custom-dark: #000000;
JSON
{
  "hex": "#021339",
  "rgb": {
    "r": 2,
    "g": 19,
    "b": 57
  },
  "hsl": {
    "h": 221.455,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20149,
    "c": 0.07823,
    "h": 261.4
  },
  "luminance": 0.00774
}

Semantic roles & 50–950 ramp

primary
#021339
secondary
#7D5E1A
accent
#BD29FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #021339

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

Preview Lab → · Contrast checker → · Palette generator →

#021339 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva