#22147E#22147E

#22147E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.4% C 0.164 H 276.4°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#22147E
RGBrgb(34, 20, 126)
HSLhsl(248, 73%, 29%)
HSVhsv(248, 84%, 49%)
CMYKcmyk(73%, 84.1%, 0%, 50.6%)
CIE-LABlab(17.21, 40.05, -56.32)
CIE-LCHlch(17.21, 69.11, 305.42°)
OKLaboklab(30.42% 0.0182 -0.1628)
OKLCHoklch(30.42% 0.164 276.4)
XYZxyz(4.6745, 2.3463, 19.9412)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22147E #707E14
analogous
#143B7E #22147E #57147E
triadic
#22147E #7E2214 #147E22
tetradic
#22147E #7E143B #707E14 #147E57
square
#22147E #7E143B #707E14 #147E57
split-complementary
#22147E #7E5714 #3B7E14
monochromatic
#07041A #140C49 #22147E #301CB3 #462EDE

Accessibility & contrast

On white

14.29
#22147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#22147E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22147E
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22147E#FFFFFF#000000##FFFFFF
##22147E1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #22147e;
/* rgb */ color: rgb(34, 20, 126);
/* oklch */ color: oklch(30.4% 0.164 276.4);
Tailwind
colors: {
  custom: {
    50: '#6d55a5',
    500: '#22147e',
    950: '#000000',
  },
}
SCSS
$custom: #22147e;
$custom-light: #6d55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#22147e",
  "rgb": {
    "r": 34,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 247.925,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30416,
    "c": 0.16379,
    "h": 276.4
  },
  "luminance": 0.02347
}

Semantic roles & 50–950 ramp

primary
#22147E
secondary
#A3B33A
accent
#EF38D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22147E

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

Preview Lab → · Contrast checker → · Palette generator →

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