#22197D#22197D

#22197D is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.158 H 275.9°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#22197D
RGBrgb(34, 25, 125)
HSLhsl(245, 67%, 29%)
HSVhsv(245, 80%, 49%)
CMYKcmyk(72.8%, 80%, 0%, 51%)
CIE-LABlab(17.99, 37.12, -54.39)
CIE-LCHlch(17.99, 65.85, 304.31°)
OKLaboklab(30.93% 0.0162 -0.1572)
OKLCHoklch(30.93% 0.158 275.9)
XYZxyz(4.7078, 2.5156, 19.6355)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22197D #747D19
analogous
#19427D #22197D #54197D
triadic
#22197D #7D2219 #197D22
tetradic
#22197D #7D1942 #747D19 #197D54
square
#22197D #7D1942 #747D19 #197D54
split-complementary
#22197D #7D5419 #427D19
monochromatic
#07051A #140F4A #22197D #3023B0 #4739D7

Accessibility & contrast

On white

13.97
#22197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#22197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22197D
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22197D#FFFFFF#000000##FFFFFF
##22197D1.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22197d;
/* rgb */ color: rgb(34, 25, 125);
/* oklch */ color: oklch(30.9% 0.158 275.9);
Tailwind
colors: {
  custom: {
    50: '#6d58a4',
    500: '#22197d',
    950: '#000000',
  },
}
SCSS
$custom: #22197d;
$custom-light: #6d58a4;
$custom-dark: #000000;
JSON
{
  "hex": "#22197d",
  "rgb": {
    "r": 34,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 245.4,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30925,
    "c": 0.15808,
    "h": 275.9
  },
  "luminance": 0.02516
}

Semantic roles & 50–950 ramp

primary
#22197D
secondary
#A7B140
accent
#EA3EDA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22197D

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

Preview Lab → · Contrast checker → · Palette generator →

#22197D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva