#22197E#22197E

#22197E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.0% C 0.159 H 275.7°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#22197E
RGBrgb(34, 25, 126)
HSLhsl(245, 67%, 30%)
HSVhsv(245, 80%, 49%)
CMYKcmyk(73%, 80.2%, 0%, 50.6%)
CIE-LABlab(18.10, 37.46, -54.84)
CIE-LCHlch(18.10, 66.41, 304.33°)
OKLaboklab(31.04% 0.0159 -0.1585)
OKLCHoklch(31.04% 0.159 275.7)
XYZxyz(4.7720, 2.5412, 19.9736)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22197E #757E19
analogous
#19427E #22197E #55197E
triadic
#22197E #7E2219 #197E22
tetradic
#22197E #7E1942 #757E19 #197E55
square
#22197E #7E1942 #757E19 #197E55
split-complementary
#22197E #7E5519 #427E19
monochromatic
#07051A #140F4B #22197E #3023B1 #483AD8

Accessibility & contrast

On white

13.92
#22197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22197E
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22197E#FFFFFF#000000##FFFFFF
##22197E1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #22197e;
/* rgb */ color: rgb(34, 25, 126);
/* oklch */ color: oklch(31.0% 0.159 275.7);
Tailwind
colors: {
  custom: {
    50: '#6d58a5',
    500: '#22197e',
    950: '#000000',
  },
}
SCSS
$custom: #22197e;
$custom-light: #6d58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#22197e",
  "rgb": {
    "r": 34,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 245.347,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3104,
    "c": 0.15935,
    "h": 275.7
  },
  "luminance": 0.02542
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #22197E

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

Preview Lab → · Contrast checker → · Palette generator →

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