#22225F#22225F

#22225F is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.3% C 0.106 H 277.7°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#22225F
RGBrgb(34, 34, 95)
HSLhsl(240, 47%, 25%)
HSVhsv(240, 64%, 37%)
CMYKcmyk(64.2%, 64.2%, 0%, 62.7%)
CIE-LABlab(17.04, 20.66, -36.46)
CIE-LCHlch(17.04, 41.90, 299.54°)
OKLaboklab(29.32% 0.0141 -0.1048)
OKLCHoklch(29.32% 0.106 277.7)
XYZxyz(3.2966, 2.3101, 11.0964)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22225F #5F5F22
analogous
#22405F #22225F #40225F
triadic
#22225F #5F2222 #225F22
tetradic
#22225F #5F2240 #5F5F22 #225F40
square
#22225F #5F2240 #5F5F22 #225F40
split-complementary
#22225F #5F4022 #405F22
monochromatic
#080817 #121232 #22225F #32328C #4242B9

Accessibility & contrast

On white

14.36
#22225F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#22225F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22225F
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22225F#FFFFFF#000000##FFFFFF
##22225F1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#00275E
Tritanopia (blue-blind)
#00313C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #22225f;
/* rgb */ color: rgb(34, 34, 95);
/* oklch */ color: oklch(29.3% 0.106 277.7);
Tailwind
colors: {
  custom: {
    50: '#655d8d',
    500: '#22225f',
    950: '#000000',
  },
}
SCSS
$custom: #22225f;
$custom-light: #655d8d;
$custom-dark: #000000;
JSON
{
  "hex": "#22225f",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 95
  },
  "hsl": {
    "h": 240,
    "s": 47.287,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29319,
    "c": 0.10575,
    "h": 277.7
  },
  "luminance": 0.0231
}

Semantic roles & 50–950 ramp

primary
#22225F
secondary
#93934A
accent
#D751D7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #22225F

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

Preview Lab → · Contrast checker → · Palette generator →

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