#22148A#22148A

#22148A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.178 H 274.7°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#22148A
RGBrgb(34, 20, 138)
HSLhsl(247, 75%, 31%)
HSVhsv(247, 86%, 54%)
CMYKcmyk(75.4%, 85.5%, 0%, 45.9%)
CIE-LABlab(18.69, 43.81, -61.45)
CIE-LCHlch(18.69, 75.47, 305.49°)
OKLaboklab(31.87% 0.0145 -0.1776)
OKLCHoklch(31.87% 0.178 274.7)
XYZxyz(5.4958, 2.6748, 24.2665)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22148A #7C8A14
analogous
#14418A #22148A #5D148A
triadic
#22148A #8A2214 #148A22
tetradic
#22148A #8A1441 #7C8A14 #148A5D
square
#22148A #8A1441 #7C8A14 #148A5D
split-complementary
#22148A #8A5D14 #418A14
monochromatic
#08051F #150C55 #22148A #2F1CBF #4B36E2

Accessibility & contrast

On white

13.68
#22148A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22148A
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22148A#FFFFFF#000000##FFFFFF
##22148A1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002888
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #22148a;
/* rgb */ color: rgb(34, 20, 138);
/* oklch */ color: oklch(31.9% 0.178 274.7);
Tailwind
colors: {
  custom: {
    50: '#7056ad',
    500: '#22148a',
    950: '#000000',
  },
}
SCSS
$custom: #22148a;
$custom-light: #7056ad;
$custom-dark: #000000;
JSON
{
  "hex": "#22148a",
  "rgb": {
    "r": 34,
    "g": 20,
    "b": 138
  },
  "hsl": {
    "h": 247.119,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31868,
    "c": 0.17823,
    "h": 274.7
  },
  "luminance": 0.02675
}

Semantic roles & 50–950 ramp

primary
#22148A
secondary
#AFBE3C
accent
#F136DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #22148A

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

Preview Lab → · Contrast checker → · Palette generator →

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