#21197C#21197C

#21197C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.157 H 275.5°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#21197C
RGBrgb(33, 25, 124)
HSLhsl(245, 66%, 29%)
HSVhsv(245, 80%, 49%)
CMYKcmyk(73.4%, 79.8%, 0%, 51.4%)
CIE-LABlab(17.80, 36.69, -54.07)
CIE-LCHlch(17.80, 65.34, 304.15°)
OKLaboklab(30.74% 0.015 -0.1563)
OKLCHoklch(30.74% 0.157 275.5)
XYZxyz(4.6117, 2.4734, 19.2992)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21197C #747C19
analogous
#19437C #21197C #53197C
triadic
#21197C #7C2119 #197C21
tetradic
#21197C #7C1943 #747C19 #197C53
square
#21197C #7C1943 #747C19 #197C53
split-complementary
#21197C #7C5319 #437C19
monochromatic
#070519 #130F49 #21197C #2F23AF #4538D7

Accessibility & contrast

On white

14.05
#21197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21197C
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21197C#FFFFFF#000000##FFFFFF
##21197C1.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00277A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #21197c;
/* rgb */ color: rgb(33, 25, 124);
/* oklch */ color: oklch(30.7% 0.157 275.5);
Tailwind
colors: {
  custom: {
    50: '#6c58a3',
    500: '#21197c',
    950: '#000000',
  },
}
SCSS
$custom: #21197c;
$custom-light: #6c58a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21197c",
  "rgb": {
    "r": 33,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 244.848,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30737,
    "c": 0.15707,
    "h": 275.5
  },
  "luminance": 0.02474
}

Semantic roles & 50–950 ramp

primary
#21197C
secondary
#A7B040
accent
#E93EDC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21197C

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

Preview Lab → · Contrast checker → · Palette generator →

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