#22256E#22256E

#22256E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.3% C 0.124 H 274.8°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#22256E
RGBrgb(34, 37, 110)
HSLhsl(238, 53%, 28%)
HSVhsv(238, 69%, 43%)
CMYKcmyk(69.1%, 66.4%, 0%, 56.9%)
CIE-LABlab(19.18, 24.23, -42.80)
CIE-LCHlch(19.18, 49.18, 299.51°)
OKLaboklab(31.31% 0.0104 -0.1234)
OKLCHoklch(31.31% 0.124 274.8)
XYZxyz(4.1348, 2.7886, 15.0692)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22256E #6E6B22
analogous
#224B6E #22256E #45226E
triadic
#22256E #6E2225 #256E22
tetradic
#22256E #6E224B #6E6B22 #226E45
square
#22256E #6E224B #6E6B22 #226E45
split-complementary
#22256E #6E4522 #4B6E22
monochromatic
#070817 #14153F #22256E #30359D #454AC5

Accessibility & contrast

On white

13.48
#22256E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#22256E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22256E
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22256E#FFFFFF#000000##FFFFFF
##22256E1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#003845
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #22256e;
/* rgb */ color: rgb(34, 37, 110);
/* oklch */ color: oklch(31.3% 0.124 274.8);
Tailwind
colors: {
  custom: {
    50: '#685f98',
    500: '#22256e',
    950: '#000000',
  },
}
SCSS
$custom: #22256e;
$custom-light: #685f98;
$custom-dark: #000000;
JSON
{
  "hex": "#22256e",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 237.632,
    "s": 52.778,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31309,
    "c": 0.12386,
    "h": 274.8
  },
  "luminance": 0.02789
}

Semantic roles & 50–950 ramp

primary
#22256E
secondary
#A19E4A
accent
#D64CDC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #22256E

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

Preview Lab → · Contrast checker → · Palette generator →

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