#21317A#21317A

#21317A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.126 H 269.4°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#21317A
RGBrgb(33, 49, 122)
HSLhsl(229, 57%, 30%)
HSVhsv(229, 73%, 48%)
CMYKcmyk(73%, 59.8%, 0%, 52.2%)
CIE-LABlab(23.42, 20.35, -43.58)
CIE-LCHlch(23.42, 48.10, 295.03°)
OKLaboklab(34.76% -0.0014 -0.1256)
OKLCHoklch(34.76% 0.126 269.4)
XYZxyz(5.2372, 3.9246, 18.8901)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21317A #7A6A21
analogous
#215E7A #21317A #3D217A
triadic
#21317A #7A2131 #317A21
tetradic
#21317A #7A215E #7A6A21 #217A3D
square
#21317A #7A215E #7A6A21 #217A3D
split-complementary
#21317A #7A3D21 #5E7A21
monochromatic
#070A1A #141E4A #21317A #2E44AA #4860CD

Accessibility & contrast

On white

11.76
#21317A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#21317A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21317A
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21317A#FFFFFF#000000##FFFFFF
##21317A1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #21317a;
/* rgb */ color: rgb(33, 49, 122);
/* oklch */ color: oklch(34.8% 0.126 269.4);
Tailwind
colors: {
  custom: {
    50: '#6968a1',
    500: '#21317a',
    950: '#000000',
  },
}
SCSS
$custom: #21317a;
$custom-light: #6968a1;
$custom-dark: #000000;
JSON
{
  "hex": "#21317a",
  "rgb": {
    "r": 33,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 229.213,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34761,
    "c": 0.12561,
    "h": 269.4
  },
  "luminance": 0.03925
}

Semantic roles & 50–950 ramp

primary
#21317A
secondary
#AD9B4A
accent
#C547E1
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #21317A

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

Preview Lab → · Contrast checker → · Palette generator →

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