#021739#021739

#021739 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.2% C 0.072 H 258.3°. Best body text is #FFFFFF at 17.73:1 contrast (WCAG AA passes).

Color values

HEX#021739
RGBrgb(2, 23, 57)
HSLhsl(217, 93%, 12%)
HSVhsv(217, 96%, 22%)
CMYKcmyk(96.5%, 59.6%, 0%, 77.6%)
CIE-LABlab(8.32, 7.24, -24.52)
CIE-LCHlch(8.32, 25.56, 286.46°)
OKLaboklab(21.19% -0.0146 -0.0707)
OKLCHoklch(21.19% 0.072 258.3)
XYZxyz(1.0697, 0.9210, 3.9915)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021739 #392402
analogous
#023339 #021739 #090239
triadic
#021739 #390217 #173902
tetradic
#021739 #390233 #392402 #023909
square
#021739 #390233 #392402 #023909
split-complementary
#021739 #390902 #333902
monochromatic
#010C1E #010C1E #021739 #042F74 #0647AF

Accessibility & contrast

On white

17.73
#021739 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#021739 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021739
17.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021739#FFFFFF#000000##FFFFFF
##0217391.0017.731.1817.73
#FFFFFF17.731.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021B3A
Deuteranopia (green-blind)
#001638
Tritanopia (blue-blind)
#001F25
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #021739;
/* rgb */ color: rgb(2, 23, 57);
/* oklch */ color: oklch(21.2% 0.072 258.3);
Tailwind
colors: {
  custom: {
    50: '#4d5370',
    500: '#021739',
    950: '#000000',
  },
}
SCSS
$custom: #021739;
$custom-light: #4d5370;
$custom-dark: #000000;
JSON
{
  "hex": "#021739",
  "rgb": {
    "r": 2,
    "g": 23,
    "b": 57
  },
  "hsl": {
    "h": 217.091,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.2119,
    "c": 0.07221,
    "h": 258.3
  },
  "luminance": 0.00921
}

Semantic roles & 50–950 ramp

primary
#021739
secondary
#7D571A
accent
#AD29FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #021739

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

Preview Lab → · Contrast checker → · Palette generator →

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