#22266C#22266C

#22266C is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.3% C 0.120 H 274.6°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#22266C
RGBrgb(34, 38, 108)
HSLhsl(237, 52%, 28%)
HSVhsv(237, 69%, 42%)
CMYKcmyk(68.5%, 64.8%, 0%, 57.6%)
CIE-LABlab(19.26, 22.78, -41.37)
CIE-LCHlch(19.26, 47.22, 298.84°)
OKLaboklab(31.32% 0.0096 -0.1192)
OKLCHoklch(31.32% 0.12 274.6)
XYZxyz(4.0587, 2.8087, 14.5127)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22266C #6C6822
analogous
#224B6C #22266C #43226C
triadic
#22266C #6C2226 #266C22
tetradic
#22266C #6C224B #6C6822 #226C43
square
#22266C #6C224B #6C6822 #226C43
split-complementary
#22266C #6C4322 #4B6C22
monochromatic
#070817 #13163D #22266C #31369B #444BC4

Accessibility & contrast

On white

13.45
#22266C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#22266C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22266C
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22266C#FFFFFF#000000##FFFFFF
##22266C1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#002B6B
Tritanopia (blue-blind)
#003845
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #22266c;
/* rgb */ color: rgb(34, 38, 108);
/* oklch */ color: oklch(31.3% 0.120 274.6);
Tailwind
colors: {
  custom: {
    50: '#676097',
    500: '#22266c',
    950: '#000000',
  },
}
SCSS
$custom: #22266c;
$custom-light: #676097;
$custom-dark: #000000;
JSON
{
  "hex": "#22266c",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 108
  },
  "hsl": {
    "h": 236.757,
    "s": 52.113,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31315,
    "c": 0.11959,
    "h": 274.6
  },
  "luminance": 0.02809
}

Semantic roles & 50–950 ramp

primary
#22266C
secondary
#A09B4A
accent
#D44CDC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #22266C

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

Preview Lab → · Contrast checker → · Palette generator →

#22266C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva