#21397A#21397A

#21397A is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.5% C 0.115 H 265.7°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#21397A
RGBrgb(33, 57, 122)
HSLhsl(224, 57%, 30%)
HSVhsv(224, 73%, 48%)
CMYKcmyk(73%, 53.3%, 0%, 52.2%)
CIE-LABlab(25.73, 14.73, -39.84)
CIE-LCHlch(25.73, 42.48, 290.29°)
OKLaboklab(36.5% -0.0086 -0.1145)
OKLCHoklch(36.5% 0.115 265.7)
XYZxyz(5.6020, 4.6542, 19.0117)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21397A #7A6221
analogous
#21657A #21397A #35217A
triadic
#21397A #7A2139 #397A21
tetradic
#21397A #7A2165 #7A6221 #217A35
square
#21397A #7A2165 #7A6221 #217A35
split-complementary
#21397A #7A3521 #657A21
monochromatic
#070C1A #14224A #21397A #2E50AA #486CCD

Accessibility & contrast

On white

10.88
#21397A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#21397A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21397A
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21397A#FFFFFF#000000##FFFFFF
##21397A1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11417C
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#004853
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #21397a;
/* rgb */ color: rgb(33, 57, 122);
/* oklch */ color: oklch(36.5% 0.115 265.7);
Tailwind
colors: {
  custom: {
    50: '#696ea1',
    500: '#21397a',
    950: '#000000',
  },
}
SCSS
$custom: #21397a;
$custom-light: #696ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#21397a",
  "rgb": {
    "r": 33,
    "g": 57,
    "b": 122
  },
  "hsl": {
    "h": 223.82,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36497,
    "c": 0.1148,
    "h": 265.7
  },
  "luminance": 0.04655
}

Semantic roles & 50–950 ramp

primary
#21397A
secondary
#AD924A
accent
#B747E1
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #21397A

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

Preview Lab → · Contrast checker → · Palette generator →

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