#21118E#21118E

#21118E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.185 H 273.9°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#21118E
RGBrgb(33, 17, 142)
HSLhsl(248, 79%, 31%)
HSVhsv(248, 88%, 56%)
CMYKcmyk(76.8%, 88%, 0%, 44.3%)
CIE-LABlab(18.70, 46.24, -63.94)
CIE-LCHlch(18.70, 78.91, 305.88°)
OKLaboklab(32% 0.0127 -0.1848)
OKLCHoklch(32% 0.185 273.9)
XYZxyz(5.7085, 2.6766, 25.8017)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21118E #7E8E11
analogous
#113F8E #21118E #5F118E
triadic
#21118E #8E2111 #118E21
tetradic
#21118E #8E113F #7E8E11 #118E5F
square
#21118E #8E113F #7E8E11 #118E5F
split-complementary
#21118E #8E5F11 #3F8E11
monochromatic
#080421 #140A57 #21118E #2E18C5 #4A33E7

Accessibility & contrast

On white

13.68
#21118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#21118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21118E
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21118E#FFFFFF#000000##FFFFFF
##21118E1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21118e;
/* rgb */ color: rgb(33, 17, 142);
/* oklch */ color: oklch(32.0% 0.185 273.9);
Tailwind
colors: {
  custom: {
    50: '#7155b0',
    500: '#21118e',
    950: '#000000',
  },
}
SCSS
$custom: #21118e;
$custom-light: #7155b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21118e",
  "rgb": {
    "r": 33,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 247.68,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32001,
    "c": 0.18526,
    "h": 273.9
  },
  "luminance": 0.02677
}

Semantic roles & 50–950 ramp

primary
#21118E
secondary
#B1C238
accent
#F533DC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #21118E

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

Preview Lab → · Contrast checker → · Palette generator →

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