#22256F#22256F

#22256F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.125 H 274.7°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#22256F
RGBrgb(34, 37, 111)
HSLhsl(238, 53%, 28%)
HSVhsv(238, 69%, 44%)
CMYKcmyk(69.4%, 66.7%, 0%, 56.5%)
CIE-LABlab(19.27, 24.60, -43.30)
CIE-LCHlch(19.27, 49.80, 299.61°)
OKLaboklab(31.41% 0.0104 -0.1249)
OKLCHoklch(31.41% 0.125 274.7)
XYZxyz(4.1896, 2.8105, 15.3575)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22256F #6F6C22
analogous
#224B6F #22256F #45226F
triadic
#22256F #6F2225 #256F22
tetradic
#22256F #6F224B #6F6C22 #226F45
square
#22256F #6F224B #6F6C22 #226F45
split-complementary
#22256F #6F4522 #4B6F22
monochromatic
#070817 #141540 #22256F #30359E #454AC6

Accessibility & contrast

On white

13.44
#22256F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22256F
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22256F#FFFFFF#000000##FFFFFF
##22256F1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#002B6E
Tritanopia (blue-blind)
#003846
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #22256f;
/* rgb */ color: rgb(34, 37, 111);
/* oklch */ color: oklch(31.4% 0.125 274.7);
Tailwind
colors: {
  custom: {
    50: '#685f99',
    500: '#22256f',
    950: '#000000',
  },
}
SCSS
$custom: #22256f;
$custom-light: #685f99;
$custom-dark: #000000;
JSON
{
  "hex": "#22256f",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 237.662,
    "s": 53.103,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31405,
    "c": 0.12531,
    "h": 274.7
  },
  "luminance": 0.02811
}

Semantic roles & 50–950 ramp

primary
#22256F
secondary
#A29F4A
accent
#D74BDD
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #22256F

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

Preview Lab → · Contrast checker → · Palette generator →

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