#21397D#21397D

#21397D is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.7% C 0.119 H 266.0°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#21397D
RGBrgb(33, 57, 125)
HSLhsl(224, 58%, 31%)
HSVhsv(224, 74%, 49%)
CMYKcmyk(73.6%, 54.4%, 0%, 51%)
CIE-LABlab(25.95, 15.92, -41.37)
CIE-LCHlch(25.95, 44.33, 291.05°)
OKLaboklab(36.74% -0.0083 -0.119)
OKLCHoklch(36.74% 0.119 266)
XYZxyz(5.7907, 4.7297, 20.0058)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21397D #7D6521
analogous
#21677D #21397D #37217D
triadic
#21397D #7D2139 #397D21
tetradic
#21397D #7D2167 #7D6521 #217D37
square
#21397D #7D2167 #7D6521 #217D37
split-complementary
#21397D #7D3721 #677D21
monochromatic
#070D1C #14234D #21397D #2E4FAD #496CCF

Accessibility & contrast

On white

10.79
#21397D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#21397D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21397D
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21397D#FFFFFF#000000##FFFFFF
##21397D1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B427F
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #21397d;
/* rgb */ color: rgb(33, 57, 125);
/* oklch */ color: oklch(36.7% 0.119 266.0);
Tailwind
colors: {
  custom: {
    50: '#696ea3',
    500: '#21397d',
    950: '#000000',
  },
}
SCSS
$custom: #21397d;
$custom-light: #696ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#21397d",
  "rgb": {
    "r": 33,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 224.348,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36739,
    "c": 0.11927,
    "h": 266
  },
  "luminance": 0.0473
}

Semantic roles & 50–950 ramp

primary
#21397D
secondary
#B0954A
accent
#B946E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #21397D

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

Preview Lab → · Contrast checker → · Palette generator →

#21397D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva