#22197F#22197F

#22197F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.161 H 275.6°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#22197F
RGBrgb(34, 25, 127)
HSLhsl(245, 67%, 30%)
HSVhsv(245, 80%, 50%)
CMYKcmyk(73.2%, 80.3%, 0%, 50.2%)
CIE-LABlab(18.22, 37.79, -55.28)
CIE-LCHlch(18.22, 66.96, 304.35°)
OKLaboklab(31.16% 0.0156 -0.1598)
OKLCHoklch(31.16% 0.161 275.6)
XYZxyz(4.8368, 2.5672, 20.3152)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22197F #767F19
analogous
#19437F #22197F #55197F
triadic
#22197F #7F2219 #197F22
tetradic
#22197F #7F1943 #767F19 #197F55
square
#22197F #7F1943 #767F19 #197F55
split-complementary
#22197F #7F5519 #437F19
monochromatic
#07051A #140F4C #22197F #3023B2 #483AD8

Accessibility & contrast

On white

13.87
#22197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#22197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22197F
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22197F#FFFFFF#000000##FFFFFF
##22197F1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #22197f;
/* rgb */ color: rgb(34, 25, 127);
/* oklch */ color: oklch(31.2% 0.161 275.6);
Tailwind
colors: {
  custom: {
    50: '#6d58a5',
    500: '#22197f',
    950: '#000000',
  },
}
SCSS
$custom: #22197f;
$custom-light: #6d58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#22197f",
  "rgb": {
    "r": 34,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 245.294,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31155,
    "c": 0.1606,
    "h": 275.6
  },
  "luminance": 0.02568
}

Semantic roles & 50–950 ramp

primary
#22197F
secondary
#A9B341
accent
#EA3EDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22197F

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

Preview Lab → · Contrast checker → · Palette generator →

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