#021940#021940

#021940 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.4% C 0.081 H 259.2°. Best body text is #FFFFFF at 17.28:1 contrast (WCAG AA passes).

Color values

HEX#021940
RGBrgb(2, 25, 64)
HSLhsl(218, 94%, 13%)
HSVhsv(218, 97%, 25%)
CMYKcmyk(96.9%, 60.9%, 0%, 74.9%)
CIE-LABlab(9.63, 9.04, -27.38)
CIE-LCHlch(9.63, 28.84, 288.28°)
OKLaboklab(22.39% -0.0151 -0.0791)
OKLCHoklch(22.39% 0.081 259.2)
XYZxyz(1.2977, 1.0782, 4.9892)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021940 #402902
analogous
#023840 #021940 #0A0240
triadic
#021940 #400219 #194002
tetradic
#021940 #400238 #402902 #02400A
square
#021940 #400238 #402902 #02400A
split-complementary
#021940 #400A02 #384002
monochromatic
#010C1E #010C1E #021940 #04307B #0647B7

Accessibility & contrast

On white

17.28
#021940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#021940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021940
17.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021940#FFFFFF#000000##FFFFFF
##0219401.0017.281.2217.28
#FFFFFF17.281.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E41
Deuteranopia (green-blind)
#00183F
Tritanopia (blue-blind)
#002329
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #021940;
/* rgb */ color: rgb(2, 25, 64);
/* oklch */ color: oklch(22.4% 0.081 259.2);
Tailwind
colors: {
  custom: {
    50: '#505575',
    500: '#021940',
    950: '#000000',
  },
}
SCSS
$custom: #021940;
$custom-light: #505575;
$custom-dark: #000000;
JSON
{
  "hex": "#021940",
  "rgb": {
    "r": 2,
    "g": 25,
    "b": 64
  },
  "hsl": {
    "h": 217.742,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.22389,
    "c": 0.08052,
    "h": 259.2
  },
  "luminance": 0.01078
}

Semantic roles & 50–950 ramp

primary
#021940
secondary
#835C1B
accent
#B029FF
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #021940

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

Preview Lab → · Contrast checker → · Palette generator →

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