#22197B#22197B

#22197B is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.156 H 276.1°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#22197B
RGBrgb(34, 25, 123)
HSLhsl(246, 66%, 29%)
HSVhsv(246, 80%, 48%)
CMYKcmyk(72.4%, 79.7%, 0%, 51.8%)
CIE-LABlab(17.76, 36.45, -53.50)
CIE-LCHlch(17.76, 64.73, 304.27°)
OKLaboklab(30.7% 0.0167 -0.1546)
OKLCHoklch(30.7% 0.156 276.1)
XYZxyz(4.5813, 2.4650, 18.9694)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22197B #727B19
analogous
#19417B #22197B #53197B
triadic
#22197B #7B2219 #197B22
tetradic
#22197B #7B1941 #727B19 #197B53
square
#22197B #7B1941 #727B19 #197B53
split-complementary
#22197B #7B5319 #417B19
monochromatic
#070519 #140F48 #22197B #3023AE #4638D7

Accessibility & contrast

On white

14.07
#22197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#22197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22197B
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22197B#FFFFFF#000000##FFFFFF
##22197B1.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002779
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #22197b;
/* rgb */ color: rgb(34, 25, 123);
/* oklch */ color: oklch(30.7% 0.156 276.1);
Tailwind
colors: {
  custom: {
    50: '#6c58a2',
    500: '#22197b',
    950: '#000000',
  },
}
SCSS
$custom: #22197b;
$custom-light: #6c58a2;
$custom-dark: #000000;
JSON
{
  "hex": "#22197b",
  "rgb": {
    "r": 34,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 245.51,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30696,
    "c": 0.15553,
    "h": 276.1
  },
  "luminance": 0.02465
}

Semantic roles & 50–950 ramp

primary
#22197B
secondary
#A5AF40
accent
#E93FD9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22197B

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

Preview Lab → · Contrast checker → · Palette generator →

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