#22258E#22258E

#22258E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.168 H 272.2°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#22258E
RGBrgb(34, 37, 142)
HSLhsl(238, 61%, 35%)
HSVhsv(238, 76%, 56%)
CMYKcmyk(76.1%, 73.9%, 0%, 44.3%)
CIE-LABlab(22.36, 35.96, -57.88)
CIE-LCHlch(22.36, 68.14, 301.85°)
OKLaboklab(34.58% 0.0065 -0.1675)
OKLCHoklch(34.58% 0.168 272.2)
XYZxyz(6.2021, 3.6156, 25.9570)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22258E #8E8B22
analogous
#225B8E #22258E #55228E
triadic
#22258E #8E2225 #258E22
tetradic
#22258E #8E225B #8E8B22 #228E55
square
#22258E #8E225B #8E8B22 #228E55
split-complementary
#22258E #8E5522 #5B8E22
monochromatic
#0A0B2B #16185D #22258E #2E32BF #5458D6

Accessibility & contrast

On white

12.19
#22258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#22258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22258E
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22258E#FFFFFF#000000##FFFFFF
##22258E1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #22258e;
/* rgb */ color: rgb(34, 37, 142);
/* oklch */ color: oklch(34.6% 0.168 272.2);
Tailwind
colors: {
  custom: {
    50: '#7060b0',
    500: '#22258e',
    950: '#000000',
  },
}
SCSS
$custom: #22258e;
$custom-light: #7060b0;
$custom-dark: #000000;
JSON
{
  "hex": "#22258e",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 238.333,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34577,
    "c": 0.16762,
    "h": 272.2
  },
  "luminance": 0.03616
}

Semantic roles & 50–950 ramp

primary
#22258E
secondary
#BAB752
accent
#E043E4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #22258E

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

Preview Lab → · Contrast checker → · Palette generator →

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