#21297F#21297F

#21297F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.143 H 271.9°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#21297F
RGBrgb(33, 41, 127)
HSLhsl(235, 59%, 31%)
HSVhsv(235, 74%, 50%)
CMYKcmyk(74%, 67.7%, 0%, 50.2%)
CIE-LABlab(21.73, 27.79, -49.51)
CIE-LCHlch(21.73, 56.77, 299.30°)
OKLaboklab(33.65% 0.0048 -0.1431)
OKLCHoklch(33.65% 0.143 271.9)
XYZxyz(5.2496, 3.4410, 20.4621)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21297F #7F7721
analogous
#21587F #21297F #48217F
triadic
#21297F #7F2129 #297F21
tetradic
#21297F #7F2158 #7F7721 #217F48
square
#21297F #7F2158 #7F7721 #217F48
split-complementary
#21297F #7F4821 #587F21
monochromatic
#080A1E #14194E #21297F #2E39B0 #4A56D0

Accessibility & contrast

On white

12.44
#21297F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#21297F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21297F
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21297F#FFFFFF#000000##FFFFFF
##21297F1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #21297f;
/* rgb */ color: rgb(33, 41, 127);
/* oklch */ color: oklch(33.7% 0.143 271.9);
Tailwind
colors: {
  custom: {
    50: '#6b63a5',
    500: '#21297f',
    950: '#000000',
  },
}
SCSS
$custom: #21297f;
$custom-light: #6b63a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21297f",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 127
  },
  "hsl": {
    "h": 234.894,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3365,
    "c": 0.14315,
    "h": 271.9
  },
  "luminance": 0.03442
}

Semantic roles & 50–950 ramp

primary
#21297F
secondary
#B2A94A
accent
#D546E2
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #21297F

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

Preview Lab → · Contrast checker → · Palette generator →

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