#22258B#22258B

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

Color values

HEX#22258B
RGBrgb(34, 37, 139)
HSLhsl(238, 61%, 34%)
HSVhsv(238, 76%, 55%)
CMYKcmyk(75.5%, 73.4%, 0%, 45.5%)
CIE-LABlab(22.04, 34.90, -56.53)
CIE-LCHlch(22.04, 66.43, 301.69°)
OKLaboklab(34.26% 0.007 -0.1636)
OKLCHoklch(34.26% 0.164 272.5)
XYZxyz(5.9799, 3.5267, 24.7867)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22258B #8B8822
analogous
#225A8B #22258B #54228B
triadic
#22258B #8B2225 #258B22
tetradic
#22258B #8B225A #8B8822 #228B54
square
#22258B #8B225A #8B8822 #228B54
split-complementary
#22258B #8B5422 #5A8B22
monochromatic
#0A0B29 #16185A #22258B #2E32BC #5356D5

Accessibility & contrast

On white

12.31
#22258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#22258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22258B
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22258B#FFFFFF#000000##FFFFFF
##22258B1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #22258b;
/* rgb */ color: rgb(34, 37, 139);
/* oklch */ color: oklch(34.3% 0.164 272.5);
Tailwind
colors: {
  custom: {
    50: '#6f60ae',
    500: '#22258b',
    950: '#000000',
  },
}
SCSS
$custom: #22258b;
$custom-light: #6f60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#22258b",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 238.286,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34255,
    "c": 0.16372,
    "h": 272.5
  },
  "luminance": 0.03527
}

Semantic roles & 50–950 ramp

primary
#22258B
secondary
#B8B650
accent
#DF44E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #22258B

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

Preview Lab → · Contrast checker → · Palette generator →

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