#21297A#21297A

#21297A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.136 H 272.2°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#21297A
RGBrgb(33, 41, 122)
HSLhsl(235, 57%, 30%)
HSVhsv(235, 73%, 48%)
CMYKcmyk(73%, 66.4%, 0%, 52.2%)
CIE-LABlab(21.26, 25.89, -47.10)
CIE-LCHlch(21.26, 53.75, 298.79°)
OKLaboklab(33.16% 0.0051 -0.136)
OKLCHoklch(33.16% 0.136 272.2)
XYZxyz(4.9318, 3.3139, 18.7883)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21297A #7A7221
analogous
#21557A #21297A #46217A
triadic
#21297A #7A2129 #297A21
tetradic
#21297A #7A2155 #7A7221 #217A46
square
#21297A #7A2155 #7A7221 #217A46
split-complementary
#21297A #7A4621 #557A21
monochromatic
#07091A #14194A #21297A #2E39AA #4854CD

Accessibility & contrast

On white

12.63
#21297A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#21297A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21297A
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21297A#FFFFFF#000000##FFFFFF
##21297A1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #21297a;
/* rgb */ color: rgb(33, 41, 122);
/* oklch */ color: oklch(33.2% 0.136 272.2);
Tailwind
colors: {
  custom: {
    50: '#6a62a1',
    500: '#21297a',
    950: '#000000',
  },
}
SCSS
$custom: #21297a;
$custom-light: #6a62a1;
$custom-dark: #000000;
JSON
{
  "hex": "#21297a",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 122
  },
  "hsl": {
    "h": 234.607,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33161,
    "c": 0.13613,
    "h": 272.2
  },
  "luminance": 0.03314
}

Semantic roles & 50–950 ramp

primary
#21297A
secondary
#ADA44A
accent
#D347E1
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #21297A

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

Preview Lab → · Contrast checker → · Palette generator →

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