#21297E#21297E

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

Color values

HEX#21297E
RGBrgb(33, 41, 126)
HSLhsl(235, 58%, 31%)
HSVhsv(235, 74%, 49%)
CMYKcmyk(73.8%, 67.5%, 0%, 50.6%)
CIE-LABlab(21.64, 27.41, -49.03)
CIE-LCHlch(21.64, 56.17, 299.21°)
OKLaboklab(33.55% 0.0049 -0.1417)
OKLCHoklch(33.55% 0.142 272)
XYZxyz(5.1848, 3.4151, 20.1205)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21297E #7E7621
analogous
#21577E #21297E #47217E
triadic
#21297E #7E2129 #297E21
tetradic
#21297E #7E2157 #7E7621 #217E47
square
#21297E #7E2157 #7E7621 #217E47
split-complementary
#21297E #7E4721 #577E21
monochromatic
#08091D #14194E #21297E #2E39AE #4A55D0

Accessibility & contrast

On white

12.48
#21297E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21297E
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21297E#FFFFFF#000000##FFFFFF
##21297E1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #21297e;
/* rgb */ color: rgb(33, 41, 126);
/* oklch */ color: oklch(33.6% 0.142 272.0);
Tailwind
colors: {
  custom: {
    50: '#6b63a4',
    500: '#21297e',
    950: '#000000',
  },
}
SCSS
$custom: #21297e;
$custom-light: #6b63a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21297e",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 126
  },
  "hsl": {
    "h": 234.839,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33551,
    "c": 0.14175,
    "h": 272
  },
  "luminance": 0.03416
}

Semantic roles & 50–950 ramp

primary
#21297E
secondary
#B1A84A
accent
#D446E2
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #21297E

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

Preview Lab → · Contrast checker → · Palette generator →

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