#22147B#22147B

#22147B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.160 H 276.8°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#22147B
RGBrgb(34, 20, 123)
HSLhsl(248, 72%, 28%)
HSVhsv(248, 84%, 48%)
CMYKcmyk(72.4%, 83.7%, 0%, 51.8%)
CIE-LABlab(16.84, 39.09, -55.01)
CIE-LCHlch(16.84, 67.48, 305.40°)
OKLaboklab(30.06% 0.0191 -0.159)
OKLCHoklch(30.06% 0.16 276.8)
XYZxyz(4.4838, 2.2700, 18.9369)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22147B #6D7B14
analogous
#143A7B #22147B #55147B
triadic
#22147B #7B2214 #147B22
tetradic
#22147B #7B143A #6D7B14 #147B55
square
#22147B #7B143A #6D7B14 #147B55
split-complementary
#22147B #7B5514 #3A7B14
monochromatic
#07041A #130B46 #22147B #311DB0 #452DDD

Accessibility & contrast

On white

14.44
#22147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22147B
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22147B#FFFFFF#000000##FFFFFF
##22147B1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002579
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #22147b;
/* rgb */ color: rgb(34, 20, 123);
/* oklch */ color: oklch(30.1% 0.160 276.8);
Tailwind
colors: {
  custom: {
    50: '#6d55a2',
    500: '#22147b',
    950: '#000000',
  },
}
SCSS
$custom: #22147b;
$custom-light: #6d55a2;
$custom-dark: #000000;
JSON
{
  "hex": "#22147b",
  "rgb": {
    "r": 34,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 248.155,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30058,
    "c": 0.16011,
    "h": 276.8
  },
  "luminance": 0.0227
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #22147B

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

Preview Lab → · Contrast checker → · Palette generator →

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