#22255F#22255F

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

Color values

HEX#22255F
RGBrgb(34, 37, 95)
HSLhsl(237, 47%, 25%)
HSVhsv(237, 64%, 37%)
CMYKcmyk(64.2%, 61.1%, 0%, 62.7%)
CIE-LABlab(17.87, 18.53, -35.11)
CIE-LCHlch(17.87, 39.70, 297.83°)
OKLaboklab(29.94% 0.0109 -0.1008)
OKLCHoklch(29.94% 0.101 276.2)
XYZxyz(3.3861, 2.4892, 11.1263)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22255F #5F5C22
analogous
#22435F #22255F #3D225F
triadic
#22255F #5F2225 #255F22
tetradic
#22255F #5F2243 #5F5C22 #225F3D
square
#22255F #5F2243 #5F5C22 #225F3D
split-complementary
#22255F #5F3D22 #435F22
monochromatic
#080917 #121332 #22255F #32378C #4248B9

Accessibility & contrast

On white

14.02
#22255F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#22255F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22255F
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22255F#FFFFFF#000000##FFFFFF
##22255F1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#00295E
Tritanopia (blue-blind)
#00333E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #22255f;
/* rgb */ color: rgb(34, 37, 95);
/* oklch */ color: oklch(29.9% 0.101 276.2);
Tailwind
colors: {
  custom: {
    50: '#645f8d',
    500: '#22255f',
    950: '#000000',
  },
}
SCSS
$custom: #22255f;
$custom-light: #645f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#22255f",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 95
  },
  "hsl": {
    "h": 237.049,
    "s": 47.287,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29935,
    "c": 0.10139,
    "h": 276.2
  },
  "luminance": 0.02489
}

Semantic roles & 50–950 ramp

primary
#22255F
secondary
#938F4A
accent
#D051D7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #22255F

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

Preview Lab → · Contrast checker → · Palette generator →

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