#21196E#21196E

#21196E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.2% C 0.139 H 277.6°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#21196E
RGBrgb(33, 25, 110)
HSLhsl(246, 63%, 26%)
HSVhsv(246, 77%, 43%)
CMYKcmyk(70%, 77.3%, 0%, 56.9%)
CIE-LABlab(16.23, 31.89, -47.65)
CIE-LCHlch(16.23, 57.33, 303.79°)
OKLaboklab(29.16% 0.0184 -0.1376)
OKLCHoklch(29.16% 0.139 277.6)
XYZxyz(3.7884, 2.1441, 14.9630)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21196E #666E19
analogous
#193C6E #21196E #4C196E
triadic
#21196E #6E2119 #196E21
tetradic
#21196E #6E193C #666E19 #196E4C
square
#21196E #6E193C #666E19 #196E4C
split-complementary
#21196E #6E4C19 #3C6E19
monochromatic
#070619 #120E3C #21196E #3024A0 #4031D0

Accessibility & contrast

On white

14.70
#21196E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#21196E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21196E
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21196E#FFFFFF#000000##FFFFFF
##21196E1.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00256C
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #21196e;
/* rgb */ color: rgb(33, 25, 110);
/* oklch */ color: oklch(29.2% 0.139 277.6);
Tailwind
colors: {
  custom: {
    50: '#685799',
    500: '#21196e',
    950: '#000000',
  },
}
SCSS
$custom: #21196e;
$custom-light: #685799;
$custom-dark: #000000;
JSON
{
  "hex": "#21196e",
  "rgb": {
    "r": 33,
    "g": 25,
    "b": 110
  },
  "hsl": {
    "h": 245.647,
    "s": 62.963,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29161,
    "c": 0.13885,
    "h": 277.6
  },
  "luminance": 0.02144
}

Semantic roles & 50–950 ramp

primary
#21196E
secondary
#9AA33F
accent
#E642D7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #21196E

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

Preview Lab → · Contrast checker → · Palette generator →

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