#021F52#021F52

#021F52 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.6% C 0.100 H 260.2°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#021F52
RGBrgb(2, 31, 82)
HSLhsl(218, 95%, 16%)
HSVhsv(218, 98%, 32%)
CMYKcmyk(97.6%, 62.2%, 0%, 67.8%)
CIE-LABlab(13.24, 12.86, -33.98)
CIE-LCHlch(13.24, 36.34, 290.72°)
OKLaboklab(25.65% -0.0169 -0.0983)
OKLCHoklch(25.65% 0.1 260.2)
XYZxyz(2.0375, 1.6018, 8.1828)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021F52 #523502
analogous
#024752 #021F52 #0D0252
triadic
#021F52 #52021F #1F5202
tetradic
#021F52 #520247 #523502 #02520D
square
#021F52 #520247 #523502 #02520D
split-complementary
#021F52 #520D02 #475202
monochromatic
#010B1E #010B1E #021F52 #03368E #054CC9

Accessibility & contrast

On white

15.90
#021F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#021F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021F52
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021F52#FFFFFF#000000##FFFFFF
##021F521.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002654
Deuteranopia (green-blind)
#001F51
Tritanopia (blue-blind)
#002C35
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #021f52;
/* rgb */ color: rgb(2, 31, 82);
/* oklch */ color: oklch(25.6% 0.100 260.2);
Tailwind
colors: {
  custom: {
    50: '#555a83',
    500: '#021f52',
    950: '#000000',
  },
}
SCSS
$custom: #021f52;
$custom-light: #555a83;
$custom-dark: #000000;
JSON
{
  "hex": "#021f52",
  "rgb": {
    "r": 2,
    "g": 31,
    "b": 82
  },
  "hsl": {
    "h": 218.25,
    "s": 95.238,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25649,
    "c": 0.09978,
    "h": 260.2
  },
  "luminance": 0.01602
}

Semantic roles & 50–950 ramp

primary
#021F52
secondary
#93681D
accent
#B129FF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#03030B
muted
#78787C

Preview Lab

Preview with #021F52

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

Preview Lab → · Contrast checker → · Palette generator →

#021F52 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva