#22258A#22258A

#22258A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.162 H 272.5°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#22258A
RGBrgb(34, 37, 138)
HSLhsl(238, 60%, 34%)
HSVhsv(238, 75%, 54%)
CMYKcmyk(75.4%, 73.2%, 0%, 45.9%)
CIE-LABlab(21.94, 34.54, -56.08)
CIE-LCHlch(21.94, 65.86, 301.63°)
OKLaboklab(34.15% 0.0072 -0.1622)
OKLCHoklch(34.15% 0.162 272.5)
XYZxyz(5.9072, 3.4976, 24.4036)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22258A #8A8722
analogous
#22598A #22258A #53228A
triadic
#22258A #8A2225 #258A22
tetradic
#22258A #8A2259 #8A8722 #228A53
square
#22258A #8A2259 #8A8722 #228A53
split-complementary
#22258A #8A5322 #598A22
monochromatic
#0A0B28 #161859 #22258A #2E32BB #5256D4

Accessibility & contrast

On white

12.36
#22258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#22258A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22258A
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22258A#FFFFFF#000000##FFFFFF
##22258A1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #22258a;
/* rgb */ color: rgb(34, 37, 138);
/* oklch */ color: oklch(34.1% 0.162 272.5);
Tailwind
colors: {
  custom: {
    50: '#6f60ad',
    500: '#22258a',
    950: '#000000',
  },
}
SCSS
$custom: #22258a;
$custom-light: #6f60ad;
$custom-dark: #000000;
JSON
{
  "hex": "#22258a",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 238.269,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34149,
    "c": 0.16241,
    "h": 272.5
  },
  "luminance": 0.03498
}

Semantic roles & 50–950 ramp

primary
#22258A
secondary
#B8B550
accent
#DF44E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #22258A

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

Preview Lab → · Contrast checker → · Palette generator →

#22258A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva