#22148B#22148B

#22148B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.179 H 274.6°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#22148B
RGBrgb(34, 20, 139)
HSLhsl(247, 75%, 31%)
HSVhsv(247, 86%, 55%)
CMYKcmyk(75.5%, 85.6%, 0%, 45.5%)
CIE-LABlab(18.82, 44.12, -61.86)
CIE-LCHlch(18.82, 75.99, 305.50°)
OKLaboklab(31.99% 0.0142 -0.1789)
OKLCHoklch(31.99% 0.179 274.6)
XYZxyz(5.5685, 2.7039, 24.6495)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22148B #7D8B14
analogous
#14418B #22148B #5D148B
triadic
#22148B #8B2214 #148B22
tetradic
#22148B #8B1441 #7D8B14 #148B5D
square
#22148B #8B1441 #7D8B14 #148B5D
split-complementary
#22148B #8B5D14 #418B14
monochromatic
#080520 #150C55 #22148B #2F1CC1 #4B37E2

Accessibility & contrast

On white

13.63
#22148B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#22148B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22148B
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22148B#FFFFFF#000000##FFFFFF
##22148B1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338E
Deuteranopia (green-blind)
#002889
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #22148b;
/* rgb */ color: rgb(34, 20, 139);
/* oklch */ color: oklch(32.0% 0.179 274.6);
Tailwind
colors: {
  custom: {
    50: '#7156ae',
    500: '#22148b',
    950: '#000000',
  },
}
SCSS
$custom: #22148b;
$custom-light: #7156ae;
$custom-dark: #000000;
JSON
{
  "hex": "#22148b",
  "rgb": {
    "r": 34,
    "g": 20,
    "b": 139
  },
  "hsl": {
    "h": 247.059,
    "s": 74.843,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31991,
    "c": 0.17943,
    "h": 274.6
  },
  "luminance": 0.02704
}

Semantic roles & 50–950 ramp

primary
#22148B
secondary
#B0BF3C
accent
#F136DB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #22148B

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

Preview Lab → · Contrast checker → · Palette generator →

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