#021740#021740

#021740 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.9% C 0.083 H 260.6°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#021740
RGBrgb(2, 23, 64)
HSLhsl(220, 94%, 13%)
HSVhsv(220, 97%, 25%)
CMYKcmyk(96.9%, 64.1%, 0%, 74.9%)
CIE-LABlab(8.96, 10.66, -28.48)
CIE-LCHlch(8.96, 30.41, 290.52°)
OKLaboklab(21.88% -0.0137 -0.0824)
OKLCHoklch(21.88% 0.083 260.6)
XYZxyz(1.2565, 0.9957, 4.9755)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021740 #402B02
analogous
#023640 #021740 #0C0240
triadic
#021740 #400217 #174002
tetradic
#021740 #400236 #402B02 #02400C
square
#021740 #400236 #402B02 #02400C
split-complementary
#021740 #400C02 #364002
monochromatic
#010B1E #010B1E #021740 #042C7B #0642B7

Accessibility & contrast

On white

17.51
#021740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#021740 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021740
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021740#FFFFFF#000000##FFFFFF
##0217401.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C41
Deuteranopia (green-blind)
#00173F
Tritanopia (blue-blind)
#002128
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #021740;
/* rgb */ color: rgb(2, 23, 64);
/* oklch */ color: oklch(21.9% 0.083 260.6);
Tailwind
colors: {
  custom: {
    50: '#505375',
    500: '#021740',
    950: '#000000',
  },
}
SCSS
$custom: #021740;
$custom-light: #505375;
$custom-dark: #000000;
JSON
{
  "hex": "#021740",
  "rgb": {
    "r": 2,
    "g": 23,
    "b": 64
  },
  "hsl": {
    "h": 219.677,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.2188,
    "c": 0.08348,
    "h": 260.6
  },
  "luminance": 0.00996
}

Semantic roles & 50–950 ramp

primary
#021740
secondary
#83601B
accent
#B629FF
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #021740

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

Preview Lab → · Contrast checker → · Palette generator →

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