#22147A#22147A

#22147A is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.159 H 277.0°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#22147A
RGBrgb(34, 20, 122)
HSLhsl(248, 72%, 28%)
HSVhsv(248, 84%, 48%)
CMYKcmyk(72.1%, 83.6%, 0%, 52.2%)
CIE-LABlab(16.72, 38.77, -54.57)
CIE-LCHlch(16.72, 66.94, 305.39°)
OKLaboklab(29.94% 0.0194 -0.1577)
OKLCHoklch(29.94% 0.159 277)
XYZxyz(4.4216, 2.2451, 18.6089)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22147A #6C7A14
analogous
#14397A #22147A #55147A
triadic
#22147A #7A2214 #147A22
tetradic
#22147A #7A1439 #6C7A14 #147A55
square
#22147A #7A1439 #6C7A14 #147A55
split-complementary
#22147A #7A5514 #397A14
monochromatic
#07041A #130B45 #22147A #311DAF #442CDC

Accessibility & contrast

On white

14.49
#22147A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#22147A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22147A
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22147A#FFFFFF#000000##FFFFFF
##22147A1.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7D
Deuteranopia (green-blind)
#002578
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #22147a;
/* rgb */ color: rgb(34, 20, 122);
/* oklch */ color: oklch(29.9% 0.159 277.0);
Tailwind
colors: {
  custom: {
    50: '#6c55a2',
    500: '#22147a',
    950: '#000000',
  },
}
SCSS
$custom: #22147a;
$custom-light: #6c55a2;
$custom-dark: #000000;
JSON
{
  "hex": "#22147a",
  "rgb": {
    "r": 34,
    "g": 20,
    "b": 122
  },
  "hsl": {
    "h": 248.235,
    "s": 71.831,
    "l": 27.843
  },
  "oklch": {
    "l": 0.2994,
    "c": 0.15888,
    "h": 277
  },
  "luminance": 0.02246
}

Semantic roles & 50–950 ramp

primary
#22147A
secondary
#A0B03A
accent
#EF39D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22147A

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

Preview Lab → · Contrast checker → · Palette generator →

#22147A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva