#21297B#21297B

#21297B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.138 H 272.1°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#21297B
RGBrgb(33, 41, 123)
HSLhsl(235, 58%, 31%)
HSVhsv(235, 73%, 48%)
CMYKcmyk(73.2%, 66.7%, 0%, 51.8%)
CIE-LABlab(21.35, 26.27, -47.59)
CIE-LCHlch(21.35, 54.36, 298.90°)
OKLaboklab(33.26% 0.0051 -0.1374)
OKLCHoklch(33.26% 0.138 272.1)
XYZxyz(4.9941, 3.3388, 19.1163)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21297B #7B7321
analogous
#21567B #21297B #46217B
triadic
#21297B #7B2129 #297B21
tetradic
#21297B #7B2156 #7B7321 #217B46
square
#21297B #7B2156 #7B7321 #217B46
split-complementary
#21297B #7B4621 #567B21
monochromatic
#07091A #14194B #21297B #2E39AB #4854CE

Accessibility & contrast

On white

12.59
#21297B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#21297B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21297B
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21297B#FFFFFF#000000##FFFFFF
##21297B1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #21297b;
/* rgb */ color: rgb(33, 41, 123);
/* oklch */ color: oklch(33.3% 0.138 272.1);
Tailwind
colors: {
  custom: {
    50: '#6a62a2',
    500: '#21297b',
    950: '#000000',
  },
}
SCSS
$custom: #21297b;
$custom-light: #6a62a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21297b",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 123
  },
  "hsl": {
    "h": 234.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33258,
    "c": 0.13754,
    "h": 272.1
  },
  "luminance": 0.03339
}

Semantic roles & 50–950 ramp

primary
#21297B
secondary
#AEA54A
accent
#D347E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #21297B

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

Preview Lab → · Contrast checker → · Palette generator →

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