#22256C#22256C

#22256C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.121 H 275.0°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#22256C
RGBrgb(34, 37, 108)
HSLhsl(238, 52%, 28%)
HSVhsv(238, 69%, 42%)
CMYKcmyk(68.5%, 65.7%, 0%, 57.6%)
CIE-LABlab(18.99, 23.47, -41.80)
CIE-LCHlch(18.99, 47.94, 299.31°)
OKLaboklab(31.12% 0.0106 -0.1205)
OKLCHoklch(31.12% 0.121 275)
XYZxyz(4.0271, 2.7456, 14.5022)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22256C #6C6922
analogous
#224A6C #22256C #44226C
triadic
#22256C #6C2225 #256C22
tetradic
#22256C #6C224A #6C6922 #226C44
square
#22256C #6C224A #6C6922 #226C44
split-complementary
#22256C #6C4422 #4A6C22
monochromatic
#070817 #13153D #22256C #31359B #4449C4

Accessibility & contrast

On white

13.56
#22256C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#22256C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22256C
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22256C#FFFFFF#000000##FFFFFF
##22256C1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#002B6B
Tritanopia (blue-blind)
#003744
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #22256c;
/* rgb */ color: rgb(34, 37, 108);
/* oklch */ color: oklch(31.1% 0.121 275.0);
Tailwind
colors: {
  custom: {
    50: '#675f97',
    500: '#22256c',
    950: '#000000',
  },
}
SCSS
$custom: #22256c;
$custom-light: #675f97;
$custom-dark: #000000;
JSON
{
  "hex": "#22256c",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 108
  },
  "hsl": {
    "h": 237.568,
    "s": 52.113,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31119,
    "c": 0.12094,
    "h": 275
  },
  "luminance": 0.02746
}

Semantic roles & 50–950 ramp

primary
#22256C
secondary
#A09C4A
accent
#D64CDC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #22256C

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

Preview Lab → · Contrast checker → · Palette generator →

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