#22257E#22257E

#22257E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.146 H 273.5°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#22257E
RGBrgb(34, 37, 126)
HSLhsl(238, 58%, 31%)
HSVhsv(238, 73%, 49%)
CMYKcmyk(73%, 70.6%, 0%, 50.6%)
CIE-LABlab(20.71, 30.19, -50.55)
CIE-LCHlch(20.71, 58.87, 300.85°)
OKLaboklab(32.9% 0.0088 -0.1461)
OKLCHoklch(32.9% 0.146 273.5)
XYZxyz(5.0859, 3.1691, 20.0783)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22257E #7E7B22
analogous
#22537E #22257E #4D227E
triadic
#22257E #7E2225 #257E22
tetradic
#22257E #7E2253 #7E7B22 #227E4D
square
#22257E #7E2253 #7E7B22 #227E4D
split-complementary
#22257E #7E4D22 #537E22
monochromatic
#08091E #15174E #22257E #2F33AE #4C50CF

Accessibility & contrast

On white

12.85
#22257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22257E
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22257E#FFFFFF#000000##FFFFFF
##22257E1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #22257e;
/* rgb */ color: rgb(34, 37, 126);
/* oklch */ color: oklch(32.9% 0.146 273.5);
Tailwind
colors: {
  custom: {
    50: '#6c60a4',
    500: '#22257e',
    950: '#000000',
  },
}
SCSS
$custom: #22257e;
$custom-light: #6c60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#22257e",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 238.043,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32895,
    "c": 0.14637,
    "h": 273.5
  },
  "luminance": 0.0317
}

Semantic roles & 50–950 ramp

primary
#22257E
secondary
#B1AD4B
accent
#DC47E1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #22257E

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

Preview Lab → · Contrast checker → · Palette generator →

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