#21197B#21197B

#21197B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.156 H 275.6°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#21197B
RGBrgb(33, 25, 123)
HSLhsl(245, 66%, 29%)
HSVhsv(245, 80%, 48%)
CMYKcmyk(73.2%, 79.7%, 0%, 51.8%)
CIE-LABlab(17.68, 36.35, -53.63)
CIE-LCHlch(17.68, 64.78, 304.13°)
OKLaboklab(30.62% 0.0152 -0.155)
OKLCHoklch(30.62% 0.156 275.6)
XYZxyz(4.5488, 2.4482, 18.9679)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21197B #737B19
analogous
#19427B #21197B #52197B
triadic
#21197B #7B2119 #197B21
tetradic
#21197B #7B1942 #737B19 #197B52
square
#21197B #7B1942 #737B19 #197B52
split-complementary
#21197B #7B5219 #427B19
monochromatic
#070519 #130F48 #21197B #2F23AE #4538D7

Accessibility & contrast

On white

14.10
#21197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#21197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21197B
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21197B#FFFFFF#000000##FFFFFF
##21197B1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002779
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #21197b;
/* rgb */ color: rgb(33, 25, 123);
/* oklch */ color: oklch(30.6% 0.156 275.6);
Tailwind
colors: {
  custom: {
    50: '#6c58a2',
    500: '#21197b',
    950: '#000000',
  },
}
SCSS
$custom: #21197b;
$custom-light: #6c58a2;
$custom-dark: #000000;
JSON
{
  "hex": "#21197b",
  "rgb": {
    "r": 33,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 244.898,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30623,
    "c": 0.15579,
    "h": 275.6
  },
  "luminance": 0.02449
}

Semantic roles & 50–950 ramp

primary
#21197B
secondary
#A6AF40
accent
#E93FDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21197B

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

Preview Lab → · Contrast checker → · Palette generator →

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