#21196A#21196A

#21196A is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.7% C 0.133 H 278.3°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#21196A
RGBrgb(33, 25, 106)
HSLhsl(246, 62%, 26%)
HSVhsv(246, 76%, 42%)
CMYKcmyk(68.9%, 76.4%, 0%, 58.4%)
CIE-LABlab(15.79, 30.49, -45.75)
CIE-LCHlch(15.79, 54.98, 303.69°)
OKLaboklab(28.72% 0.0193 -0.1321)
OKLCHoklch(28.72% 0.133 278.3)
XYZxyz(3.5755, 2.0589, 13.8419)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21196A #626A19
analogous
#19396A #21196A #49196A
triadic
#21196A #6A2119 #196A21
tetradic
#21196A #6A1939 #626A19 #196A49
square
#21196A #6A1939 #626A19 #196A49
split-complementary
#21196A #6A4919 #396A19
monochromatic
#080619 #120D38 #21196A #30259C #4030CD

Accessibility & contrast

On white

14.87
#21196A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#21196A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21196A
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21196A#FFFFFF#000000##FFFFFF
##21196A1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002469
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #21196a;
/* rgb */ color: rgb(33, 25, 106);
/* oklch */ color: oklch(28.7% 0.133 278.3);
Tailwind
colors: {
  custom: {
    50: '#685796',
    500: '#21196a',
    950: '#000000',
  },
}
SCSS
$custom: #21196a;
$custom-light: #685796;
$custom-dark: #000000;
JSON
{
  "hex": "#21196a",
  "rgb": {
    "r": 33,
    "g": 25,
    "b": 106
  },
  "hsl": {
    "h": 245.926,
    "s": 61.832,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28724,
    "c": 0.13348,
    "h": 278.3
  },
  "luminance": 0.02059
}

Semantic roles & 50–950 ramp

primary
#21196A
secondary
#96A03F
accent
#E543D5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #21196A

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

Preview Lab → · Contrast checker → · Palette generator →

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