#21397F#21397F

#21397F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 36.9% C 0.122 H 266.2°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#21397F
RGBrgb(33, 57, 127)
HSLhsl(225, 59%, 31%)
HSVhsv(225, 74%, 50%)
CMYKcmyk(74%, 55.1%, 0%, 50.2%)
CIE-LABlab(26.10, 16.72, -42.38)
CIE-LCHlch(26.10, 45.56, 291.53°)
OKLaboklab(36.9% -0.0081 -0.1219)
OKLCHoklch(36.9% 0.122 266.2)
XYZxyz(5.9198, 4.7813, 20.6855)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21397F #7F6721
analogous
#21687F #21397F #38217F
triadic
#21397F #7F2139 #397F21
tetradic
#21397F #7F2168 #7F6721 #217F38
square
#21397F #7F2168 #7F6721 #217F38
split-complementary
#21397F #7F3821 #687F21
monochromatic
#080D1E #14234E #21397F #2E4FB0 #4A6CD0

Accessibility & contrast

On white

10.73
#21397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#21397F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21397F
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21397F#FFFFFF#000000##FFFFFF
##21397F1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064281
Deuteranopia (green-blind)
#003A7E
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #21397f;
/* rgb */ color: rgb(33, 57, 127);
/* oklch */ color: oklch(36.9% 0.122 266.2);
Tailwind
colors: {
  custom: {
    50: '#6a6ea5',
    500: '#21397f',
    950: '#000000',
  },
}
SCSS
$custom: #21397f;
$custom-light: #6a6ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#21397f",
  "rgb": {
    "r": 33,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 224.681,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36902,
    "c": 0.12222,
    "h": 266.2
  },
  "luminance": 0.04782
}

Semantic roles & 50–950 ramp

primary
#21397F
secondary
#B2974A
accent
#BA46E2
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #21397F

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

Preview Lab → · Contrast checker → · Palette generator →

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