#22227F#22227F

#22227F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.151 H 274.0°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#22227F
RGBrgb(34, 34, 127)
HSLhsl(240, 58%, 32%)
HSVhsv(240, 73%, 50%)
CMYKcmyk(73.2%, 73.2%, 0%, 50.2%)
CIE-LABlab(20.11, 32.47, -52.17)
CIE-LCHlch(20.11, 61.45, 301.90°)
OKLaboklab(32.49% 0.0107 -0.1508)
OKLCHoklch(32.49% 0.151 274)
XYZxyz(5.0612, 3.0160, 20.3900)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22227F #7F7F22
analogous
#22517F #22227F #51227F
triadic
#22227F #7F2222 #227F22
tetradic
#22227F #7F2251 #7F7F22 #227F51
square
#22227F #7F2251 #7F7F22 #227F51
split-complementary
#22227F #7F5122 #517F22
monochromatic
#08081E #15154F #22227F #2F2FAF #4C4CCF

Accessibility & contrast

On white

13.10
#22227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#22227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22227F
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22227F#FFFFFF#000000##FFFFFF
##22227F1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #22227f;
/* rgb */ color: rgb(34, 34, 127);
/* oklch */ color: oklch(32.5% 0.151 274.0);
Tailwind
colors: {
  custom: {
    50: '#6c5ea5',
    500: '#22227f',
    950: '#000000',
  },
}
SCSS
$custom: #22227f;
$custom-light: #6c5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#22227f",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 240,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32493,
    "c": 0.15122,
    "h": 274
  },
  "luminance": 0.03016
}

Semantic roles & 50–950 ramp

primary
#22227F
secondary
#B2B24B
accent
#E147E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #22227F

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

Preview Lab → · Contrast checker → · Palette generator →

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