#21137A#21137A

#21137A is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.160 H 276.6°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#21137A
RGBrgb(33, 19, 122)
HSLhsl(248, 73%, 28%)
HSVhsv(248, 84%, 48%)
CMYKcmyk(73%, 84.4%, 0%, 52.2%)
CIE-LABlab(16.47, 39.18, -54.99)
CIE-LCHlch(16.47, 67.52, 305.47°)
OKLaboklab(29.74% 0.0183 -0.1589)
OKLCHoklch(29.74% 0.16 276.6)
XYZxyz(4.3718, 2.1938, 18.6016)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21137A #6C7A13
analogous
#13397A #21137A #54137A
triadic
#21137A #7A2113 #137A21
tetradic
#21137A #7A1339 #6C7A13 #137A54
square
#21137A #7A1339 #6C7A13 #137A54
split-complementary
#21137A #7A5413 #397A13
monochromatic
#07041A #130B45 #21137A #2F1BAF #422ADE

Accessibility & contrast

On white

14.60
#21137A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#21137A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21137A
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21137A#FFFFFF#000000##FFFFFF
##21137A1.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7D
Deuteranopia (green-blind)
#002478
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #21137a;
/* rgb */ color: rgb(33, 19, 122);
/* oklch */ color: oklch(29.7% 0.160 276.6);
Tailwind
colors: {
  custom: {
    50: '#6c54a2',
    500: '#21137a',
    950: '#000000',
  },
}
SCSS
$custom: #21137a;
$custom-light: #6c54a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21137a",
  "rgb": {
    "r": 33,
    "g": 19,
    "b": 122
  },
  "hsl": {
    "h": 248.155,
    "s": 73.05,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29745,
    "c": 0.15996,
    "h": 276.6
  },
  "luminance": 0.02194
}

Semantic roles & 50–950 ramp

primary
#21137A
secondary
#A0B039
accent
#F038D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21137A

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

Preview Lab → · Contrast checker → · Palette generator →

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