#21137E#21137E

#21137E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.165 H 276.0°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#21137E
RGBrgb(33, 19, 126)
HSLhsl(248, 74%, 28%)
HSVhsv(248, 85%, 49%)
CMYKcmyk(73.8%, 84.9%, 0%, 50.6%)
CIE-LABlab(16.96, 40.45, -56.73)
CIE-LCHlch(16.96, 69.67, 305.49°)
OKLaboklab(30.23% 0.0171 -0.164)
OKLCHoklch(30.23% 0.165 276)
XYZxyz(4.6247, 2.2950, 19.9339)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21137E #707E13
analogous
#133B7E #21137E #56137E
triadic
#21137E #7E2113 #137E21
tetradic
#21137E #7E133B #707E13 #137E56
square
#21137E #7E133B #707E13 #137E56
split-complementary
#21137E #7E5613 #3B7E13
monochromatic
#07041B #130B49 #21137E #2F1BB3 #442CDF

Accessibility & contrast

On white

14.39
#21137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#21137E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21137E
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21137E#FFFFFF#000000##FFFFFF
##21137E1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #21137e;
/* rgb */ color: rgb(33, 19, 126);
/* oklch */ color: oklch(30.2% 0.165 276.0);
Tailwind
colors: {
  custom: {
    50: '#6d55a5',
    500: '#21137e',
    950: '#000000',
  },
}
SCSS
$custom: #21137e;
$custom-light: #6d55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21137e",
  "rgb": {
    "r": 33,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 247.85,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30227,
    "c": 0.16486,
    "h": 276
  },
  "luminance": 0.02295
}

Semantic roles & 50–950 ramp

primary
#21137E
secondary
#A4B439
accent
#F037D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21137E

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

Preview Lab → · Contrast checker → · Palette generator →

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