#22147C#22147C

#22147C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.161 H 276.7°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#22147C
RGBrgb(34, 20, 124)
HSLhsl(248, 72%, 28%)
HSVhsv(248, 84%, 49%)
CMYKcmyk(72.6%, 83.9%, 0%, 51.4%)
CIE-LABlab(16.97, 39.41, -55.45)
CIE-LCHlch(16.97, 68.03, 305.40°)
OKLaboklab(30.18% 0.0188 -0.1602)
OKLCHoklch(30.18% 0.161 276.7)
XYZxyz(4.5467, 2.2952, 19.2683)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22147C #6E7C14
analogous
#143A7C #22147C #56147C
triadic
#22147C #7C2214 #147C22
tetradic
#22147C #7C143A #6E7C14 #147C56
square
#22147C #7C143A #6E7C14 #147C56
split-complementary
#22147C #7C5614 #3A7C14
monochromatic
#07041A #140B47 #22147C #301DB1 #452DDD

Accessibility & contrast

On white

14.39
#22147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#22147C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22147C
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22147C#FFFFFF#000000##FFFFFF
##22147C1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #22147c;
/* rgb */ color: rgb(34, 20, 124);
/* oklch */ color: oklch(30.2% 0.161 276.7);
Tailwind
colors: {
  custom: {
    50: '#6d55a3',
    500: '#22147c',
    950: '#000000',
  },
}
SCSS
$custom: #22147c;
$custom-light: #6d55a3;
$custom-dark: #000000;
JSON
{
  "hex": "#22147c",
  "rgb": {
    "r": 34,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 248.077,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30177,
    "c": 0.16134,
    "h": 276.7
  },
  "luminance": 0.02296
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #22147C

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

Preview Lab → · Contrast checker → · Palette generator →

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