#22257A#22257A

#22257A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.141 H 273.8°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#22257A
RGBrgb(34, 37, 122)
HSLhsl(238, 56%, 31%)
HSVhsv(238, 72%, 48%)
CMYKcmyk(72.1%, 69.7%, 0%, 52.2%)
CIE-LABlab(20.31, 28.71, -48.65)
CIE-LCHlch(20.31, 56.49, 300.55°)
OKLaboklab(32.49% 0.0093 -0.1406)
OKLCHoklch(32.49% 0.141 273.8)
XYZxyz(4.8329, 3.0679, 18.7460)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22257A #7A7722
analogous
#22517A #22257A #4B227A
triadic
#22257A #7A2225 #257A22
tetradic
#22257A #7A2251 #7A7722 #227A4B
square
#22257A #7A2251 #7A7722 #227A4B
split-complementary
#22257A #7A4B22 #517A22
monochromatic
#07081A #15164A #22257A #2F34AA #4A4ECD

Accessibility & contrast

On white

13.01
#22257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#22257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22257A
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22257A#FFFFFF#000000##FFFFFF
##22257A1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #22257a;
/* rgb */ color: rgb(34, 37, 122);
/* oklch */ color: oklch(32.5% 0.141 273.8);
Tailwind
colors: {
  custom: {
    50: '#6b60a1',
    500: '#22257a',
    950: '#000000',
  },
}
SCSS
$custom: #22257a;
$custom-light: #6b60a1;
$custom-dark: #000000;
JSON
{
  "hex": "#22257a",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 237.955,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32488,
    "c": 0.14087,
    "h": 273.8
  },
  "luminance": 0.03068
}

Semantic roles & 50–950 ramp

primary
#22257A
secondary
#ADA94B
accent
#DB48E0
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #22257A

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

Preview Lab → · Contrast checker → · Palette generator →

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