#22128F#22128F

#22128F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.185 H 274.2°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#22128F
RGBrgb(34, 18, 143)
HSLhsl(248, 78%, 32%)
HSVhsv(248, 87%, 56%)
CMYKcmyk(76.2%, 87.4%, 0%, 43.9%)
CIE-LABlab(19.04, 46.20, -64.00)
CIE-LCHlch(19.04, 78.93, 305.82°)
OKLaboklab(32.29% 0.0136 -0.185)
OKLCHoklch(32.29% 0.186 274.2)
XYZxyz(5.8323, 2.7553, 26.2057)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22128F #7F8F12
analogous
#12418F #22128F #61128F
triadic
#22128F #8F2212 #128F22
tetradic
#22128F #8F1241 #7F8F12 #128F61
square
#22128F #8F1241 #7F8F12 #128F61
split-complementary
#22128F #8F6112 #418F12
monochromatic
#080422 #150B59 #22128F #2F19C5 #4C36E6

Accessibility & contrast

On white

13.54
#22128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#22128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22128F
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22128F#FFFFFF#000000##FFFFFF
##22128F1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00288D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #22128f;
/* rgb */ color: rgb(34, 18, 143);
/* oklch */ color: oklch(32.3% 0.185 274.2);
Tailwind
colors: {
  custom: {
    50: '#7256b1',
    500: '#22128f',
    950: '#000000',
  },
}
SCSS
$custom: #22128f;
$custom-light: #7256b1;
$custom-dark: #000000;
JSON
{
  "hex": "#22128f",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 247.68,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32286,
    "c": 0.1855,
    "h": 274.2
  },
  "luminance": 0.02756
}

Semantic roles & 50–950 ramp

primary
#22128F
secondary
#B2C33A
accent
#F434DC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #22128F

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

Preview Lab → · Contrast checker → · Palette generator →

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