#22255E#22255E

#22255E is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.8% C 0.100 H 276.2°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#22255E
RGBrgb(34, 37, 94)
HSLhsl(237, 47%, 25%)
HSVhsv(237, 64%, 37%)
CMYKcmyk(63.8%, 60.6%, 0%, 63.1%)
CIE-LABlab(17.79, 18.15, -34.58)
CIE-LCHlch(17.79, 39.05, 297.70°)
OKLaboklab(29.85% 0.0109 -0.0992)
OKLCHoklch(29.85% 0.1 276.2)
XYZxyz(3.3410, 2.4711, 10.8884)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22255E #5E5B22
analogous
#22435E #22255E #3D225E
triadic
#22255E #5E2225 #255E22
tetradic
#22255E #5E2243 #5E5B22 #225E3D
square
#22255E #5E2243 #5E5B22 #225E3D
split-complementary
#22255E #5E3D22 #435E22
monochromatic
#080916 #121331 #22255E #32378B #4348B8

Accessibility & contrast

On white

14.05
#22255E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#22255E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22255E
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22255E#FFFFFF#000000##FFFFFF
##22255E1.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#00295D
Tritanopia (blue-blind)
#00323D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #22255e;
/* rgb */ color: rgb(34, 37, 94);
/* oklch */ color: oklch(29.8% 0.100 276.2);
Tailwind
colors: {
  custom: {
    50: '#645f8c',
    500: '#22255e',
    950: '#000000',
  },
}
SCSS
$custom: #22255e;
$custom-light: #645f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#22255e",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 94
  },
  "hsl": {
    "h": 237,
    "s": 46.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29848,
    "c": 0.09984,
    "h": 276.2
  },
  "luminance": 0.02471
}

Semantic roles & 50–950 ramp

primary
#22255E
secondary
#928E4A
accent
#D051D7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #22255E

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

Preview Lab → · Contrast checker → · Palette generator →

#22255E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva