#22247F#22247F

#22247F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.149 H 273.6°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#22247F
RGBrgb(34, 36, 127)
HSLhsl(239, 58%, 32%)
HSVhsv(239, 73%, 50%)
CMYKcmyk(73.2%, 71.7%, 0%, 50.2%)
CIE-LABlab(20.57, 31.20, -51.41)
CIE-LCHlch(20.57, 60.13, 301.26°)
OKLaboklab(32.83% 0.0094 -0.1486)
OKLCHoklch(32.83% 0.149 273.6)
XYZxyz(5.1201, 3.1336, 20.4096)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22247F #7F7D22
analogous
#22537F #22247F #4F227F
triadic
#22247F #7F2224 #247F22
tetradic
#22247F #7F2253 #7F7D22 #227F4F
square
#22247F #7F2253 #7F7D22 #227F4F
split-complementary
#22247F #7F4F22 #537F22
monochromatic
#08091E #15164F #22247F #2F32AF #4C4FCF

Accessibility & contrast

On white

12.91
#22247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#22247F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22247F
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22247F#FFFFFF#000000##FFFFFF
##22247F1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22247f;
/* rgb */ color: rgb(34, 36, 127);
/* oklch */ color: oklch(32.8% 0.149 273.6);
Tailwind
colors: {
  custom: {
    50: '#6c5fa5',
    500: '#22247f',
    950: '#000000',
  },
}
SCSS
$custom: #22247f;
$custom-light: #6c5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#22247f",
  "rgb": {
    "r": 34,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 238.71,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32826,
    "c": 0.14891,
    "h": 273.6
  },
  "luminance": 0.03134
}

Semantic roles & 50–950 ramp

primary
#22247F
secondary
#B2AF4B
accent
#DE47E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #22247F

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

Preview Lab → · Contrast checker → · Palette generator →

#22247F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva