#21397C#21397C

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

Color values

HEX#21397C
RGBrgb(33, 57, 124)
HSLhsl(224, 58%, 31%)
HSVhsv(224, 73%, 49%)
CMYKcmyk(73.4%, 54%, 0%, 51.4%)
CIE-LABlab(25.87, 15.53, -40.86)
CIE-LCHlch(25.87, 43.71, 290.80°)
OKLaboklab(36.66% -0.0084 -0.1175)
OKLCHoklch(36.66% 0.118 265.9)
XYZxyz(5.7271, 4.7042, 19.6711)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21397C #7C6421
analogous
#21667C #21397C #36217C
triadic
#21397C #7C2139 #397C21
tetradic
#21397C #7C2166 #7C6421 #217C36
square
#21397C #7C2166 #7C6421 #217C36
split-complementary
#21397C #7C3621 #667C21
monochromatic
#070D1B #14234C #21397C #2E4FAC #496CCF

Accessibility & contrast

On white

10.82
#21397C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21397C
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21397C#FFFFFF#000000##FFFFFF
##21397C1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21397c;
/* rgb */ color: rgb(33, 57, 124);
/* oklch */ color: oklch(36.7% 0.118 265.9);
Tailwind
colors: {
  custom: {
    50: '#696ea2',
    500: '#21397c',
    950: '#000000',
  },
}
SCSS
$custom: #21397c;
$custom-light: #696ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#21397c",
  "rgb": {
    "r": 33,
    "g": 57,
    "b": 124
  },
  "hsl": {
    "h": 224.176,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36658,
    "c": 0.11778,
    "h": 265.9
  },
  "luminance": 0.04705
}

Semantic roles & 50–950 ramp

primary
#21397C
secondary
#AF944A
accent
#B847E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #21397C

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

Preview Lab → · Contrast checker → · Palette generator →

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