#21196F#21196F

#21196F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.3% C 0.140 H 277.4°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#21196F
RGBrgb(33, 25, 111)
HSLhsl(246, 63%, 27%)
HSVhsv(246, 77%, 44%)
CMYKcmyk(70.3%, 77.5%, 0%, 56.5%)
CIE-LABlab(16.34, 32.24, -48.12)
CIE-LCHlch(16.34, 57.92, 303.82°)
OKLaboklab(29.27% 0.0181 -0.139)
OKLCHoklch(29.27% 0.14 277.4)
XYZxyz(3.8431, 2.1660, 15.2514)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21196F #676F19
analogous
#193C6F #21196F #4C196F
triadic
#21196F #6F2119 #196F21
tetradic
#21196F #6F193C #676F19 #196F4C
square
#21196F #6F193C #676F19 #196F4C
split-complementary
#21196F #6F4C19 #3C6F19
monochromatic
#070619 #120E3D #21196F #3024A1 #4032D1

Accessibility & contrast

On white

14.65
#21196F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21196F
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21196F#FFFFFF#000000##FFFFFF
##21196F1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00256D
Tritanopia (blue-blind)
#003242
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #21196f;
/* rgb */ color: rgb(33, 25, 111);
/* oklch */ color: oklch(29.3% 0.140 277.4);
Tailwind
colors: {
  custom: {
    50: '#695799',
    500: '#21196f',
    950: '#000000',
  },
}
SCSS
$custom: #21196f;
$custom-light: #695799;
$custom-dark: #000000;
JSON
{
  "hex": "#21196f",
  "rgb": {
    "r": 33,
    "g": 25,
    "b": 111
  },
  "hsl": {
    "h": 245.581,
    "s": 63.235,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29271,
    "c": 0.14018,
    "h": 277.4
  },
  "luminance": 0.02166
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21196F

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

Preview Lab → · Contrast checker → · Palette generator →

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