#021840#021840

#021840 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.1% C 0.082 H 259.9°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#021840
RGBrgb(2, 24, 64)
HSLhsl(219, 94%, 13%)
HSVhsv(219, 97%, 25%)
CMYKcmyk(96.9%, 62.5%, 0%, 74.9%)
CIE-LABlab(9.29, 9.85, -27.93)
CIE-LCHlch(9.29, 29.62, 289.42°)
OKLaboklab(22.13% -0.0144 -0.0807)
OKLCHoklch(22.13% 0.082 259.9)
XYZxyz(1.2767, 1.0362, 4.9822)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021840 #402A02
analogous
#023740 #021840 #0B0240
triadic
#021840 #400218 #184002
tetradic
#021840 #400237 #402A02 #02400B
square
#021840 #400237 #402A02 #02400B
split-complementary
#021840 #400B02 #374002
monochromatic
#010B1E #010B1E #021840 #042E7B #0645B7

Accessibility & contrast

On white

17.40
#021840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#021840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021840
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021840#FFFFFF#000000##FFFFFF
##0218401.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D41
Deuteranopia (green-blind)
#00173F
Tritanopia (blue-blind)
#002229
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #021840;
/* rgb */ color: rgb(2, 24, 64);
/* oklch */ color: oklch(22.1% 0.082 259.9);
Tailwind
colors: {
  custom: {
    50: '#505475',
    500: '#021840',
    950: '#000000',
  },
}
SCSS
$custom: #021840;
$custom-light: #505475;
$custom-dark: #000000;
JSON
{
  "hex": "#021840",
  "rgb": {
    "r": 2,
    "g": 24,
    "b": 64
  },
  "hsl": {
    "h": 218.71,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.22133,
    "c": 0.082,
    "h": 259.9
  },
  "luminance": 0.01036
}

Semantic roles & 50–950 ramp

primary
#021840
secondary
#835E1B
accent
#B329FF
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #021840

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

Preview Lab → · Contrast checker → · Palette generator →

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