#22247A#22247A

#22247A is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.142 H 274.1°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#22247A
RGBrgb(34, 36, 122)
HSLhsl(239, 56%, 31%)
HSVhsv(239, 72%, 48%)
CMYKcmyk(72.1%, 70.5%, 0%, 52.2%)
CIE-LABlab(20.07, 29.37, -49.05)
CIE-LCHlch(20.07, 57.17, 300.91°)
OKLaboklab(32.31% 0.01 -0.1417)
OKLCHoklch(32.31% 0.142 274.1)
XYZxyz(4.8022, 3.0065, 18.7358)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22247A #7A7822
analogous
#22507A #22247A #4C227A
triadic
#22247A #7A2224 #247A22
tetradic
#22247A #7A2250 #7A7822 #227A4C
square
#22247A #7A2250 #7A7822 #227A4C
split-complementary
#22247A #7A4C22 #507A22
monochromatic
#07081A #15164A #22247A #2F32AA #4A4DCD

Accessibility & contrast

On white

13.11
#22247A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#22247A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22247A
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22247A#FFFFFF#000000##FFFFFF
##22247A1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#002C78
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #22247a;
/* rgb */ color: rgb(34, 36, 122);
/* oklch */ color: oklch(32.3% 0.142 274.1);
Tailwind
colors: {
  custom: {
    50: '#6b5fa1',
    500: '#22247a',
    950: '#000000',
  },
}
SCSS
$custom: #22247a;
$custom-light: #6b5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#22247a",
  "rgb": {
    "r": 34,
    "g": 36,
    "b": 122
  },
  "hsl": {
    "h": 238.636,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32312,
    "c": 0.14209,
    "h": 274.1
  },
  "luminance": 0.03007
}

Semantic roles & 50–950 ramp

primary
#22247A
secondary
#ADAB4B
accent
#DC48E0
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #22247A

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

Preview Lab → · Contrast checker → · Palette generator →

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