#22226F#22226F

#22226F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.129 H 275.7°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#22226F
RGBrgb(34, 34, 111)
HSLhsl(240, 53%, 28%)
HSVhsv(240, 69%, 44%)
CMYKcmyk(69.4%, 69.4%, 0%, 56.5%)
CIE-LABlab(18.50, 26.63, -44.55)
CIE-LCHlch(18.50, 51.91, 300.87°)
OKLaboklab(30.85% 0.0129 -0.1286)
OKLCHoklch(30.85% 0.129 275.7)
XYZxyz(4.1000, 2.6315, 15.3277)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22226F #6F6F22
analogous
#22486F #22226F #48226F
triadic
#22226F #6F2222 #226F22
tetradic
#22226F #6F2248 #6F6F22 #226F48
square
#22226F #6F2248 #6F6F22 #226F48
split-complementary
#22226F #6F4822 #486F22
monochromatic
#070717 #141440 #22226F #30309E #4545C6

Accessibility & contrast

On white

13.76
#22226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#22226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22226F
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22226F#FFFFFF#000000##FFFFFF
##22226F1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #22226f;
/* rgb */ color: rgb(34, 34, 111);
/* oklch */ color: oklch(30.8% 0.129 275.7);
Tailwind
colors: {
  custom: {
    50: '#685d99',
    500: '#22226f',
    950: '#000000',
  },
}
SCSS
$custom: #22226f;
$custom-light: #685d99;
$custom-dark: #000000;
JSON
{
  "hex": "#22226f",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 240,
    "s": 53.103,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30847,
    "c": 0.1292,
    "h": 275.7
  },
  "luminance": 0.02632
}

Semantic roles & 50–950 ramp

primary
#22226F
secondary
#A2A24A
accent
#DD4BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #22226F

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

Preview Lab → · Contrast checker → · Palette generator →

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