#21196B#21196B

#21196B is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.135 H 278.1°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#21196B
RGBrgb(33, 25, 107)
HSLhsl(246, 62%, 26%)
HSVhsv(246, 77%, 42%)
CMYKcmyk(69.2%, 76.6%, 0%, 58%)
CIE-LABlab(15.90, 30.84, -46.23)
CIE-LCHlch(15.90, 55.57, 303.71°)
OKLaboklab(28.83% 0.019 -0.1335)
OKLCHoklch(28.83% 0.135 278.1)
XYZxyz(3.6278, 2.0798, 14.1173)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21196B #636B19
analogous
#193A6B #21196B #4A196B
triadic
#21196B #6B2119 #196B21
tetradic
#21196B #6B193A #636B19 #196B4A
square
#21196B #6B193A #636B19 #196B4A
split-complementary
#21196B #6B4A19 #3A6B19
monochromatic
#080619 #120D39 #21196B #30259D #4030CE

Accessibility & contrast

On white

14.83
#21196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21196B
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21196B#FFFFFF#000000##FFFFFF
##21196B1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21196b;
/* rgb */ color: rgb(33, 25, 107);
/* oklch */ color: oklch(28.8% 0.135 278.1);
Tailwind
colors: {
  custom: {
    50: '#685796',
    500: '#21196b',
    950: '#000000',
  },
}
SCSS
$custom: #21196b;
$custom-light: #685796;
$custom-dark: #000000;
JSON
{
  "hex": "#21196b",
  "rgb": {
    "r": 33,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 245.854,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28832,
    "c": 0.13483,
    "h": 278.1
  },
  "luminance": 0.0208
}

Semantic roles & 50–950 ramp

primary
#21196B
secondary
#97A13F
accent
#E543D5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #21196B

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

Preview Lab → · Contrast checker → · Palette generator →

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