#21137C#21137C

#21137C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.0% C 0.162 H 276.3°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#21137C
RGBrgb(33, 19, 124)
HSLhsl(248, 73%, 28%)
HSVhsv(248, 85%, 49%)
CMYKcmyk(73.4%, 84.7%, 0%, 51.4%)
CIE-LABlab(16.72, 39.81, -55.86)
CIE-LCHlch(16.72, 68.60, 305.48°)
OKLaboklab(29.99% 0.0177 -0.1614)
OKLCHoklch(29.99% 0.162 276.3)
XYZxyz(4.4970, 2.2439, 19.2610)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21137C #6E7C13
analogous
#13397C #21137C #55137C
triadic
#21137C #7C2113 #137C21
tetradic
#21137C #7C1339 #6E7C13 #137C55
square
#21137C #7C1339 #6E7C13 #137C55
split-complementary
#21137C #7C5513 #397C13
monochromatic
#07041B #130B47 #21137C #2F1BB1 #432BDF

Accessibility & contrast

On white

14.49
#21137C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#21137C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21137C
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21137C#FFFFFF#000000##FFFFFF
##21137C1.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #21137c;
/* rgb */ color: rgb(33, 19, 124);
/* oklch */ color: oklch(30.0% 0.162 276.3);
Tailwind
colors: {
  custom: {
    50: '#6d55a3',
    500: '#21137c',
    950: '#000000',
  },
}
SCSS
$custom: #21137c;
$custom-light: #6d55a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21137c",
  "rgb": {
    "r": 33,
    "g": 19,
    "b": 124
  },
  "hsl": {
    "h": 248,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29986,
    "c": 0.16242,
    "h": 276.3
  },
  "luminance": 0.02244
}

Semantic roles & 50–950 ramp

primary
#21137C
secondary
#A2B239
accent
#F038D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21137C

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

Preview Lab → · Contrast checker → · Palette generator →

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