#22256B#22256B

#22256B is a dark, moderate blue. Relative luminance 0.027; OKLCH L 31.0% C 0.119 H 275.1°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#22256B
RGBrgb(34, 37, 107)
HSLhsl(238, 52%, 28%)
HSVhsv(238, 68%, 42%)
CMYKcmyk(68.2%, 65.4%, 0%, 58%)
CIE-LABlab(18.90, 23.09, -41.30)
CIE-LCHlch(18.90, 47.32, 299.21°)
OKLaboklab(31.03% 0.0106 -0.119)
OKLCHoklch(31.03% 0.119 275.1)
XYZxyz(3.9742, 2.7244, 14.2235)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22256B #6B6822
analogous
#224A6B #22256B #43226B
triadic
#22256B #6B2225 #256B22
tetradic
#22256B #6B224A #6B6822 #226B43
square
#22256B #6B224A #6B6822 #226B43
split-complementary
#22256B #6B4322 #4A6B22
monochromatic
#070817 #13153D #22256B #313599 #4449C4

Accessibility & contrast

On white

13.59
#22256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22256B
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22256B#FFFFFF#000000##FFFFFF
##22256B1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22256b;
/* rgb */ color: rgb(34, 37, 107);
/* oklch */ color: oklch(31.0% 0.119 275.1);
Tailwind
colors: {
  custom: {
    50: '#675f96',
    500: '#22256b',
    950: '#000000',
  },
}
SCSS
$custom: #22256b;
$custom-light: #675f96;
$custom-dark: #000000;
JSON
{
  "hex": "#22256b",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 237.534,
    "s": 51.773,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31025,
    "c": 0.11948,
    "h": 275.1
  },
  "luminance": 0.02725
}

Semantic roles & 50–950 ramp

primary
#22256B
secondary
#9F9B4A
accent
#D54DDB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #22256B

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

Preview Lab → · Contrast checker → · Palette generator →

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