#21297D#21297D

#21297D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.140 H 272.0°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#21297D
RGBrgb(33, 41, 125)
HSLhsl(235, 58%, 31%)
HSVhsv(235, 74%, 49%)
CMYKcmyk(73.6%, 67.2%, 0%, 51%)
CIE-LABlab(21.54, 27.03, -48.55)
CIE-LCHlch(21.54, 55.57, 299.11°)
OKLaboklab(33.45% 0.0049 -0.1403)
OKLCHoklch(33.45% 0.14 272)
XYZxyz(5.1206, 3.3894, 19.7824)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21297D #7D7521
analogous
#21577D #21297D #47217D
triadic
#21297D #7D2129 #297D21
tetradic
#21297D #7D2157 #7D7521 #217D47
square
#21297D #7D2157 #7D7521 #217D47
split-complementary
#21297D #7D4721 #577D21
monochromatic
#07091C #14194D #21297D #2E39AD #4955CF

Accessibility & contrast

On white

12.51
#21297D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#21297D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21297D
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21297D#FFFFFF#000000##FFFFFF
##21297D1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #21297d;
/* rgb */ color: rgb(33, 41, 125);
/* oklch */ color: oklch(33.5% 0.140 272.0);
Tailwind
colors: {
  custom: {
    50: '#6b63a3',
    500: '#21297d',
    950: '#000000',
  },
}
SCSS
$custom: #21297d;
$custom-light: #6b63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21297d",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 125
  },
  "hsl": {
    "h": 234.783,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33453,
    "c": 0.14036,
    "h": 272
  },
  "luminance": 0.0339
}

Semantic roles & 50–950 ramp

primary
#21297D
secondary
#B0A74A
accent
#D446E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #21297D

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

Preview Lab → · Contrast checker → · Palette generator →

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