#021539#021539

#021539 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.7% C 0.075 H 260.0°. Best body text is #FFFFFF at 17.96:1 contrast (WCAG AA passes).

Color values

HEX#021539
RGBrgb(2, 21, 57)
HSLhsl(219, 93%, 12%)
HSVhsv(219, 96%, 22%)
CMYKcmyk(96.5%, 63.2%, 0%, 77.6%)
CIE-LABlab(7.63, 8.85, -25.63)
CIE-LCHlch(7.63, 27.11, 289.05°)
OKLaboklab(20.66% -0.0131 -0.0741)
OKLCHoklch(20.66% 0.075 260)
XYZxyz(1.0314, 0.8445, 3.9787)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021539 #392602
analogous
#023139 #021539 #0B0239
triadic
#021539 #390215 #153902
tetradic
#021539 #390231 #392602 #02390B
square
#021539 #390231 #392602 #02390B
split-complementary
#021539 #390B02 #313902
monochromatic
#010B1E #010B1E #021539 #042B74 #0641AF

Accessibility & contrast

On white

17.96
#021539 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#021539 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021539
17.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021539#FFFFFF#000000##FFFFFF
##0215391.0017.961.1717.96
#FFFFFF17.961.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3A
Deuteranopia (green-blind)
#001438
Tritanopia (blue-blind)
#001E24
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #021539;
/* rgb */ color: rgb(2, 21, 57);
/* oklch */ color: oklch(20.7% 0.075 260.0);
Tailwind
colors: {
  custom: {
    50: '#4d5170',
    500: '#021539',
    950: '#000000',
  },
}
SCSS
$custom: #021539;
$custom-light: #4d5170;
$custom-dark: #000000;
JSON
{
  "hex": "#021539",
  "rgb": {
    "r": 2,
    "g": 21,
    "b": 57
  },
  "hsl": {
    "h": 219.273,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20662,
    "c": 0.07522,
    "h": 260
  },
  "luminance": 0.00845
}

Semantic roles & 50–950 ramp

primary
#021539
secondary
#7D5B1A
accent
#B529FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #021539

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

Preview Lab → · Contrast checker → · Palette generator →

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