#22128A#22128A

#22128A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.7% C 0.180 H 274.8°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#22128A
RGBrgb(34, 18, 138)
HSLhsl(248, 77%, 31%)
HSVhsv(248, 87%, 54%)
CMYKcmyk(75.4%, 87%, 0%, 45.9%)
CIE-LABlab(18.40, 44.69, -61.94)
CIE-LCHlch(18.40, 76.37, 305.81°)
OKLaboklab(31.67% 0.0152 -0.179)
OKLCHoklch(31.67% 0.18 274.8)
XYZxyz(5.4619, 2.6071, 24.2552)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22128A #7A8A12
analogous
#123E8A #22128A #5E128A
triadic
#22128A #8A2212 #128A22
tetradic
#22128A #8A123E #7A8A12 #128A5E
square
#22128A #8A123E #7A8A12 #128A5E
split-complementary
#22128A #8A5E12 #3E8A12
monochromatic
#07041E #150B54 #22128A #2F19C0 #4A32E4

Accessibility & contrast

On white

13.80
#22128A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#22128A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22128A
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22128A#FFFFFF#000000##FFFFFF
##22128A1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22128a;
/* rgb */ color: rgb(34, 18, 138);
/* oklch */ color: oklch(31.7% 0.180 274.8);
Tailwind
colors: {
  custom: {
    50: '#7055ae',
    500: '#22128a',
    950: '#000000',
  },
}
SCSS
$custom: #22128a;
$custom-light: #7055ae;
$custom-dark: #000000;
JSON
{
  "hex": "#22128a",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 138
  },
  "hsl": {
    "h": 248,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31666,
    "c": 0.17966,
    "h": 274.8
  },
  "luminance": 0.02608
}

Semantic roles & 50–950 ramp

primary
#22128A
secondary
#ADBF39
accent
#F334DA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #22128A

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

Preview Lab → · Contrast checker → · Palette generator →

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