#22227B#22227B

#22227B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.146 H 274.4°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#22227B
RGBrgb(34, 34, 123)
HSLhsl(240, 57%, 31%)
HSVhsv(240, 72%, 48%)
CMYKcmyk(72.4%, 72.4%, 0%, 51.8%)
CIE-LABlab(19.69, 31.03, -50.31)
CIE-LCHlch(19.69, 59.11, 301.67°)
OKLaboklab(32.07% 0.0113 -0.1454)
OKLCHoklch(32.07% 0.146 274.4)
XYZxyz(4.8057, 2.9137, 19.0442)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22227B #7B7B22
analogous
#224E7B #22227B #4E227B
triadic
#22227B #7B2222 #227B22
tetradic
#22227B #7B224E #7B7B22 #227B4E
square
#22227B #7B224E #7B7B22 #227B4E
split-complementary
#22227B #7B4E22 #4E7B22
monochromatic
#07071B #15154B #22227B #2F2FAB #4A4ACD

Accessibility & contrast

On white

13.27
#22227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#22227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22227B
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22227B#FFFFFF#000000##FFFFFF
##22227B1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #22227b;
/* rgb */ color: rgb(34, 34, 123);
/* oklch */ color: oklch(32.1% 0.146 274.4);
Tailwind
colors: {
  custom: {
    50: '#6b5ea2',
    500: '#22227b',
    950: '#000000',
  },
}
SCSS
$custom: #22227b;
$custom-light: #6b5ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#22227b",
  "rgb": {
    "r": 34,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 240,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32072,
    "c": 0.14584,
    "h": 274.4
  },
  "luminance": 0.02914
}

Semantic roles & 50–950 ramp

primary
#22227B
secondary
#AEAE4B
accent
#E048E0
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #22227B

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

Preview Lab → · Contrast checker → · Palette generator →

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