#21196C#21196C

#21196C is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.9% C 0.136 H 277.9°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#21196C
RGBrgb(33, 25, 108)
HSLhsl(246, 62%, 26%)
HSVhsv(246, 77%, 42%)
CMYKcmyk(69.4%, 76.9%, 0%, 57.6%)
CIE-LABlab(16.01, 31.19, -46.70)
CIE-LCHlch(16.01, 56.16, 303.74°)
OKLaboklab(28.94% 0.0188 -0.1349)
OKLCHoklch(28.94% 0.136 277.9)
XYZxyz(3.6807, 2.1010, 14.3960)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21196C #646C19
analogous
#193A6C #21196C #4A196C
triadic
#21196C #6C2119 #196C21
tetradic
#21196C #6C193A #646C19 #196C4A
square
#21196C #6C193A #646C19 #196C4A
split-complementary
#21196C #6C4A19 #3A6C19
monochromatic
#080619 #120D3A #21196C #30259E #4030CF

Accessibility & contrast

On white

14.79
#21196C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#21196C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21196C
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21196C#FFFFFF#000000##FFFFFF
##21196C1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00246A
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #21196c;
/* rgb */ color: rgb(33, 25, 108);
/* oklch */ color: oklch(28.9% 0.136 277.9);
Tailwind
colors: {
  custom: {
    50: '#685797',
    500: '#21196c',
    950: '#000000',
  },
}
SCSS
$custom: #21196c;
$custom-light: #685797;
$custom-dark: #000000;
JSON
{
  "hex": "#21196c",
  "rgb": {
    "r": 33,
    "g": 25,
    "b": 108
  },
  "hsl": {
    "h": 245.783,
    "s": 62.406,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28941,
    "c": 0.13618,
    "h": 277.9
  },
  "luminance": 0.02101
}

Semantic roles & 50–950 ramp

primary
#21196C
secondary
#98A13F
accent
#E542D6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #21196C

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

Preview Lab → · Contrast checker → · Palette generator →

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