#021139#021139

#021139 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.7% C 0.081 H 262.6°. Best body text is #FFFFFF at 18.39:1 contrast (WCAG AA passes).

Color values

HEX#021139
RGBrgb(2, 17, 57)
HSLhsl(224, 93%, 12%)
HSVhsv(224, 96%, 22%)
CMYKcmyk(96.5%, 70.2%, 0%, 77.6%)
CIE-LABlab(6.41, 11.64, -27.61)
CIE-LCHlch(6.41, 29.97, 292.87°)
OKLaboklab(19.65% -0.0104 -0.0805)
OKLCHoklch(19.65% 0.081 262.6)
XYZxyz(0.9637, 0.7091, 3.9562)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021139 #392A02
analogous
#022D39 #021139 #0F0239
triadic
#021139 #390211 #113902
tetradic
#021139 #39022D #392A02 #02390F
square
#021139 #39022D #392A02 #02390F
split-complementary
#021139 #390F02 #2D3902
monochromatic
#01091E #01091E #021139 #042374 #0634AF

Accessibility & contrast

On white

18.39
#021139 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#021139 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021139
18.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021139#FFFFFF#000000##FFFFFF
##0211391.0018.391.1418.39
#FFFFFF18.391.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173A
Deuteranopia (green-blind)
#001238
Tritanopia (blue-blind)
#001B22
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #021139;
/* rgb */ color: rgb(2, 17, 57);
/* oklch */ color: oklch(19.7% 0.081 262.6);
Tailwind
colors: {
  custom: {
    50: '#4d4e70',
    500: '#021139',
    950: '#000000',
  },
}
SCSS
$custom: #021139;
$custom-light: #4d4e70;
$custom-dark: #000000;
JSON
{
  "hex": "#021139",
  "rgb": {
    "r": 2,
    "g": 17,
    "b": 57
  },
  "hsl": {
    "h": 223.636,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.19654,
    "c": 0.08122,
    "h": 262.6
  },
  "luminance": 0.00709
}

Semantic roles & 50–950 ramp

primary
#021139
secondary
#7D621A
accent
#C529FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #021139

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

Preview Lab → · Contrast checker → · Palette generator →

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