#21397B#21397B

#21397B is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.6% C 0.116 H 265.8°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#21397B
RGBrgb(33, 57, 123)
HSLhsl(224, 58%, 31%)
HSVhsv(224, 73%, 48%)
CMYKcmyk(73.2%, 53.7%, 0%, 51.8%)
CIE-LABlab(25.80, 15.13, -40.35)
CIE-LCHlch(25.80, 43.10, 290.55°)
OKLaboklab(36.58% -0.0085 -0.116)
OKLCHoklch(36.58% 0.116 265.8)
XYZxyz(5.6642, 4.6791, 19.3397)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21397B #7B6321
analogous
#21667B #21397B #36217B
triadic
#21397B #7B2139 #397B21
tetradic
#21397B #7B2166 #7B6321 #217B36
square
#21397B #7B2166 #7B6321 #217B36
split-complementary
#21397B #7B3621 #667B21
monochromatic
#070C1A #14234B #21397B #2E4FAB #486CCE

Accessibility & contrast

On white

10.85
#21397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#21397B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21397B
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21397B#FFFFFF#000000##FFFFFF
##21397B1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F417D
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #21397b;
/* rgb */ color: rgb(33, 57, 123);
/* oklch */ color: oklch(36.6% 0.116 265.8);
Tailwind
colors: {
  custom: {
    50: '#696ea2',
    500: '#21397b',
    950: '#000000',
  },
}
SCSS
$custom: #21397b;
$custom-light: #696ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#21397b",
  "rgb": {
    "r": 33,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 224,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36577,
    "c": 0.11629,
    "h": 265.8
  },
  "luminance": 0.0468
}

Semantic roles & 50–950 ramp

primary
#21397B
secondary
#AE934A
accent
#B847E1
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #21397B

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

Preview Lab → · Contrast checker → · Palette generator →

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