#22255D#22255D

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

Color values

HEX#22255D
RGBrgb(34, 37, 93)
HSLhsl(237, 46%, 25%)
HSVhsv(237, 63%, 36%)
CMYKcmyk(63.4%, 60.2%, 0%, 63.5%)
CIE-LABlab(17.71, 17.77, -34.05)
CIE-LCHlch(17.71, 38.41, 297.56°)
OKLaboklab(29.76% 0.0108 -0.0977)
OKLCHoklch(29.76% 0.098 276.3)
XYZxyz(3.2964, 2.4533, 10.6536)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22255D #5D5A22
analogous
#22435D #22255D #3C225D
triadic
#22255D #5D2225 #255D22
tetradic
#22255D #5D2243 #5D5A22 #225D3C
square
#22255D #5D2243 #5D5A22 #225D3C
split-complementary
#22255D #5D3C22 #435D22
monochromatic
#080916 #121330 #22255D #32378A #4349B7

Accessibility & contrast

On white

14.09
#22255D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22255D
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22255D#FFFFFF#000000##FFFFFF
##22255D1.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E5F
Deuteranopia (green-blind)
#00295C
Tritanopia (blue-blind)
#00323D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #22255d;
/* rgb */ color: rgb(34, 37, 93);
/* oklch */ color: oklch(29.8% 0.098 276.3);
Tailwind
colors: {
  custom: {
    50: '#645f8b',
    500: '#22255d',
    950: '#000000',
  },
}
SCSS
$custom: #22255d;
$custom-light: #645f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#22255d",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 93
  },
  "hsl": {
    "h": 236.949,
    "s": 46.457,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29762,
    "c": 0.09828,
    "h": 276.3
  },
  "luminance": 0.02454
}

Semantic roles & 50–950 ramp

primary
#22255D
secondary
#918D4A
accent
#CF52D6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #22255D

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

Preview Lab → · Contrast checker → · Palette generator →

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