#22259E#22259E

#22259E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.188 H 271.2°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#22259E
RGBrgb(34, 37, 158)
HSLhsl(239, 65%, 38%)
HSVhsv(239, 78%, 62%)
CMYKcmyk(78.5%, 76.6%, 0%, 38%)
CIE-LABlab(24.10, 41.53, -64.86)
CIE-LCHlch(24.10, 77.01, 302.63°)
OKLaboklab(36.33% 0.0038 -0.1878)
OKLCHoklch(36.33% 0.188 271.2)
XYZxyz(7.4907, 4.1310, 32.7437)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22259E #9E9B22
analogous
#22639E #22259E #5D229E
triadic
#22259E #9E2225 #259E22
tetradic
#22259E #9E2263 #9E9B22 #229E5D
square
#22259E #9E2263 #9E9B22 #229E5D
split-complementary
#22259E #9E5D22 #639E22
monochromatic
#0C0D39 #17196C #22259E #2D31D0 #5E61DC

Accessibility & contrast

On white

11.50
#22259E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#22259E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22259E
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22259E#FFFFFF#000000##FFFFFF
##22259E1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #22259e;
/* rgb */ color: rgb(34, 37, 158);
/* oklch */ color: oklch(36.3% 0.188 271.2);
Tailwind
colors: {
  custom: {
    50: '#7461bc',
    500: '#22259e',
    950: '#000000',
  },
}
SCSS
$custom: #22259e;
$custom-light: #7461bc;
$custom-dark: #000000;
JSON
{
  "hex": "#22259e",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 158
  },
  "hsl": {
    "h": 238.548,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36333,
    "c": 0.18783,
    "h": 271.2
  },
  "luminance": 0.04132
}

Semantic roles & 50–950 ramp

primary
#22259E
secondary
#C1BF5B
accent
#E440E8
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #22259E

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

Preview Lab → · Contrast checker → · Palette generator →

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