#22257D#22257D

#22257D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.145 H 273.5°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#22257D
RGBrgb(34, 37, 125)
HSLhsl(238, 57%, 31%)
HSVhsv(238, 73%, 49%)
CMYKcmyk(72.8%, 70.4%, 0%, 51%)
CIE-LABlab(20.61, 29.82, -50.08)
CIE-LCHlch(20.61, 58.28, 300.77°)
OKLaboklab(32.79% 0.009 -0.1447)
OKLCHoklch(32.79% 0.145 273.5)
XYZxyz(5.0217, 3.1434, 19.7402)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22257D #7D7A22
analogous
#22527D #22257D #4C227D
triadic
#22257D #7D2225 #257D22
tetradic
#22257D #7D2252 #7D7A22 #227D4C
square
#22257D #7D2252 #7D7A22 #227D4C
split-complementary
#22257D #7D4C22 #527D22
monochromatic
#08091D #15174D #22257D #2F33AD #4B50CE

Accessibility & contrast

On white

12.89
#22257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#22257D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22257D
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22257D#FFFFFF#000000##FFFFFF
##22257D1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #22257d;
/* rgb */ color: rgb(34, 37, 125);
/* oklch */ color: oklch(32.8% 0.145 273.5);
Tailwind
colors: {
  custom: {
    50: '#6b60a4',
    500: '#22257d',
    950: '#000000',
  },
}
SCSS
$custom: #22257d;
$custom-light: #6b60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#22257d",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 238.022,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32793,
    "c": 0.145,
    "h": 273.5
  },
  "luminance": 0.03144
}

Semantic roles & 50–950 ramp

primary
#22257D
secondary
#B0AC4B
accent
#DB47E0
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #22257D

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

Preview Lab → · Contrast checker → · Palette generator →

#22257D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva