#21137B#21137B

#21137B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.161 H 276.4°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#21137B
RGBrgb(33, 19, 123)
HSLhsl(248, 73%, 28%)
HSVhsv(248, 85%, 48%)
CMYKcmyk(73.2%, 84.6%, 0%, 51.8%)
CIE-LABlab(16.60, 39.50, -55.42)
CIE-LCHlch(16.60, 68.06, 305.47°)
OKLaboklab(29.87% 0.018 -0.1602)
OKLCHoklch(29.87% 0.161 276.4)
XYZxyz(4.4341, 2.2187, 18.9296)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21137B #6D7B13
analogous
#13397B #21137B #55137B
triadic
#21137B #7B2113 #137B21
tetradic
#21137B #7B1339 #6D7B13 #137B55
square
#21137B #7B1339 #6D7B13 #137B55
split-complementary
#21137B #7B5513 #397B13
monochromatic
#07041B #130B46 #21137B #2F1BB0 #422ADE

Accessibility & contrast

On white

14.54
#21137B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21137B
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21137B#FFFFFF#000000##FFFFFF
##21137B1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7E
Deuteranopia (green-blind)
#002479
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #21137b;
/* rgb */ color: rgb(33, 19, 123);
/* oklch */ color: oklch(29.9% 0.161 276.4);
Tailwind
colors: {
  custom: {
    50: '#6c55a2',
    500: '#21137b',
    950: '#000000',
  },
}
SCSS
$custom: #21137b;
$custom-light: #6c55a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21137b",
  "rgb": {
    "r": 33,
    "g": 19,
    "b": 123
  },
  "hsl": {
    "h": 248.077,
    "s": 73.239,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29865,
    "c": 0.16119,
    "h": 276.4
  },
  "luminance": 0.02219
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21137B

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

Preview Lab → · Contrast checker → · Palette generator →

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