#21297C#21297C

#21297C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.139 H 272.1°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#21297C
RGBrgb(33, 41, 124)
HSLhsl(235, 58%, 31%)
HSVhsv(235, 73%, 49%)
CMYKcmyk(73.4%, 66.9%, 0%, 51.4%)
CIE-LABlab(21.45, 26.65, -48.07)
CIE-LCHlch(21.45, 54.96, 299.00°)
OKLaboklab(33.36% 0.005 -0.1389)
OKLCHoklch(33.36% 0.139 272.1)
XYZxyz(5.0570, 3.3639, 19.4477)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21297C #7C7421
analogous
#21567C #21297C #46217C
triadic
#21297C #7C2129 #297C21
tetradic
#21297C #7C2156 #7C7421 #217C46
square
#21297C #7C2156 #7C7421 #217C46
split-complementary
#21297C #7C4621 #567C21
monochromatic
#07091B #14194C #21297C #2E39AC #4955CF

Accessibility & contrast

On white

12.55
#21297C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21297C
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21297C#FFFFFF#000000##FFFFFF
##21297C1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #21297c;
/* rgb */ color: rgb(33, 41, 124);
/* oklch */ color: oklch(33.4% 0.139 272.1);
Tailwind
colors: {
  custom: {
    50: '#6a63a3',
    500: '#21297c',
    950: '#000000',
  },
}
SCSS
$custom: #21297c;
$custom-light: #6a63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21297c",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 124
  },
  "hsl": {
    "h": 234.725,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33355,
    "c": 0.13895,
    "h": 272.1
  },
  "luminance": 0.03364
}

Semantic roles & 50–950 ramp

primary
#21297C
secondary
#AFA64A
accent
#D447E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #21297C

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

Preview Lab → · Contrast checker → · Palette generator →

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