#22147F#22147F

#22147F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.165 H 276.2°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#22147F
RGBrgb(34, 20, 127)
HSLhsl(248, 73%, 29%)
HSVhsv(248, 84%, 50%)
CMYKcmyk(73.2%, 84.3%, 0%, 50.2%)
CIE-LABlab(17.33, 40.37, -56.76)
CIE-LCHlch(17.33, 69.65, 305.42°)
OKLaboklab(30.54% 0.0179 -0.164)
OKLCHoklch(30.54% 0.165 276.2)
XYZxyz(4.7394, 2.3723, 20.2827)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22147F #717F14
analogous
#143C7F #22147F #58147F
triadic
#22147F #7F2214 #147F22
tetradic
#22147F #7F143C #717F14 #147F58
square
#22147F #7F143C #717F14 #147F58
split-complementary
#22147F #7F5814 #3C7F14
monochromatic
#07041A #140C4A #22147F #301CB4 #462FDE

Accessibility & contrast

On white

14.24
#22147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22147F
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22147F#FFFFFF#000000##FFFFFF
##22147F1.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #22147f;
/* rgb */ color: rgb(34, 20, 127);
/* oklch */ color: oklch(30.5% 0.165 276.2);
Tailwind
colors: {
  custom: {
    50: '#6e55a5',
    500: '#22147f',
    950: '#000000',
  },
}
SCSS
$custom: #22147f;
$custom-light: #6e55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#22147f",
  "rgb": {
    "r": 34,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 247.85,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30536,
    "c": 0.16501,
    "h": 276.2
  },
  "luminance": 0.02373
}

Semantic roles & 50–950 ramp

primary
#22147F
secondary
#A4B43B
accent
#EF38D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22147F

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

Preview Lab → · Contrast checker → · Palette generator →

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