#21118C#21118C

#21118C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.8% C 0.183 H 274.2°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#21118C
RGBrgb(33, 17, 140)
HSLhsl(248, 78%, 31%)
HSVhsv(248, 88%, 55%)
CMYKcmyk(76.4%, 87.9%, 0%, 45.1%)
CIE-LABlab(18.44, 45.64, -63.12)
CIE-LCHlch(18.44, 77.89, 305.87°)
OKLaboklab(31.75% 0.0134 -0.1824)
OKLCHoklch(31.75% 0.183 274.2)
XYZxyz(5.5597, 2.6171, 25.0180)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21118C #7C8C11
analogous
#113E8C #21118C #5E118C
triadic
#21118C #8C2111 #118C21
tetradic
#21118C #8C113E #7C8C11 #118C5E
square
#21118C #8C113E #7C8C11 #118C5E
split-complementary
#21118C #8C5E11 #3E8C11
monochromatic
#07041F #140A55 #21118C #2E18C3 #4931E6

Accessibility & contrast

On white

13.78
#21118C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#21118C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21118C
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21118C#FFFFFF#000000##FFFFFF
##21118C1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #21118c;
/* rgb */ color: rgb(33, 17, 140);
/* oklch */ color: oklch(31.8% 0.183 274.2);
Tailwind
colors: {
  custom: {
    50: '#7155af',
    500: '#21118c',
    950: '#000000',
  },
}
SCSS
$custom: #21118c;
$custom-light: #7155af;
$custom-dark: #000000;
JSON
{
  "hex": "#21118c",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 140
  },
  "hsl": {
    "h": 247.805,
    "s": 78.344,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3175,
    "c": 0.18294,
    "h": 274.2
  },
  "luminance": 0.02618
}

Semantic roles & 50–950 ramp

primary
#21118C
secondary
#AFC138
accent
#F533DC
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #21118C

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

Preview Lab → · Contrast checker → · Palette generator →

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