#21138E#21138E

#21138E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.2% C 0.184 H 273.8°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#21138E
RGBrgb(33, 19, 142)
HSLhsl(247, 76%, 32%)
HSVhsv(247, 87%, 56%)
CMYKcmyk(76.8%, 86.6%, 0%, 44.3%)
CIE-LABlab(18.98, 45.41, -63.48)
CIE-LCHlch(18.98, 78.05, 305.58°)
OKLaboklab(32.19% 0.0122 -0.1835)
OKLCHoklch(32.19% 0.184 273.8)
XYZxyz(5.7409, 2.7415, 25.8125)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21138E #808E13
analogous
#13438E #21138E #5F138E
triadic
#21138E #8E2113 #138E21
tetradic
#21138E #8E1343 #808E13 #138E5F
square
#21138E #8E1343 #808E13 #138E5F
split-complementary
#21138E #8E5F13 #438E13
monochromatic
#080522 #140C58 #21138E #2E1AC4 #4B37E4

Accessibility & contrast

On white

13.56
#21138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#21138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21138E
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21138E#FFFFFF#000000##FFFFFF
##21138E1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00288C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #21138e;
/* rgb */ color: rgb(33, 19, 142);
/* oklch */ color: oklch(32.2% 0.184 273.8);
Tailwind
colors: {
  custom: {
    50: '#7156b0',
    500: '#21138e',
    950: '#000000',
  },
}
SCSS
$custom: #21138e;
$custom-light: #7156b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21138e",
  "rgb": {
    "r": 33,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 246.829,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32191,
    "c": 0.18393,
    "h": 273.8
  },
  "luminance": 0.02742
}

Semantic roles & 50–950 ramp

primary
#21138E
secondary
#B3C23B
accent
#F335DD
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #21138E

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

Preview Lab → · Contrast checker → · Palette generator →

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