#21156F#21156F

#21156F is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.144 H 278.2°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#21156F
RGBrgb(33, 21, 111)
HSLhsl(248, 68%, 26%)
HSVhsv(248, 81%, 44%)
CMYKcmyk(70.3%, 81.1%, 0%, 56.5%)
CIE-LABlab(15.52, 34.54, -49.46)
CIE-LCHlch(15.52, 60.33, 304.93°)
OKLaboklab(28.7% 0.0206 -0.1429)
OKLCHoklch(28.7% 0.144 278.2)
XYZxyz(3.7637, 2.0070, 15.2249)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21156F #636F15
analogous
#15366F #21156F #4E156F
triadic
#21156F #6F2115 #156F21
tetradic
#21156F #6F1536 #636F15 #156F4E
square
#21156F #6F1536 #636F15 #156F4E
split-complementary
#21156F #6F4E15 #366F15
monochromatic
#08051A #120B3C #21156F #301FA2 #4028D6

Accessibility & contrast

On white

14.99
#21156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#21156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21156F
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21156F#FFFFFF#000000##FFFFFF
##21156F1.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00236D
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #21156f;
/* rgb */ color: rgb(33, 21, 111);
/* oklch */ color: oklch(28.7% 0.144 278.2);
Tailwind
colors: {
  custom: {
    50: '#695599',
    500: '#21156f',
    950: '#000000',
  },
}
SCSS
$custom: #21156f;
$custom-light: #695599;
$custom-dark: #000000;
JSON
{
  "hex": "#21156f",
  "rgb": {
    "r": 33,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 248,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.287,
    "c": 0.14434,
    "h": 278.2
  },
  "luminance": 0.02007
}

Semantic roles & 50–950 ramp

primary
#21156F
secondary
#97A53A
accent
#EB3DD4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #21156F

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

Preview Lab → · Contrast checker → · Palette generator →

#21156F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva