#22197C#22197C

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

Color values

HEX#22197C
RGBrgb(34, 25, 124)
HSLhsl(245, 66%, 29%)
HSVhsv(245, 80%, 49%)
CMYKcmyk(72.6%, 79.8%, 0%, 51.4%)
CIE-LABlab(17.87, 36.79, -53.95)
CIE-LCHlch(17.87, 65.29, 304.29°)
OKLaboklab(30.81% 0.0164 -0.1559)
OKLCHoklch(30.81% 0.157 276)
XYZxyz(4.6442, 2.4901, 19.3008)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22197C #737C19
analogous
#19417C #22197C #54197C
triadic
#22197C #7C2219 #197C22
tetradic
#22197C #7C1941 #737C19 #197C54
square
#22197C #7C1941 #737C19 #197C54
split-complementary
#22197C #7C5419 #417C19
monochromatic
#070519 #140F49 #22197C #3023AF #4738D7

Accessibility & contrast

On white

14.02
#22197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22197C
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22197C#FFFFFF#000000##FFFFFF
##22197C1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.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: #22197c;
/* rgb */ color: rgb(34, 25, 124);
/* oklch */ color: oklch(30.8% 0.157 276.0);
Tailwind
colors: {
  custom: {
    50: '#6c58a3',
    500: '#22197c',
    950: '#000000',
  },
}
SCSS
$custom: #22197c;
$custom-light: #6c58a3;
$custom-dark: #000000;
JSON
{
  "hex": "#22197c",
  "rgb": {
    "r": 34,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 245.455,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3081,
    "c": 0.15681,
    "h": 276
  },
  "luminance": 0.02491
}

Semantic roles & 50–950 ramp

primary
#22197C
secondary
#A6B040
accent
#E93EDA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22197C

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

Preview Lab → · Contrast checker → · Palette generator →

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