#22317A#22317A

#22317A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.125 H 269.9°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#22317A
RGBrgb(34, 49, 122)
HSLhsl(230, 56%, 31%)
HSVhsv(230, 72%, 48%)
CMYKcmyk(72.1%, 59.8%, 0%, 52.2%)
CIE-LABlab(23.48, 20.50, -43.49)
CIE-LCHlch(23.48, 48.08, 295.24°)
OKLaboklab(34.82% -0.0003 -0.1253)
OKLCHoklch(34.82% 0.125 269.9)
XYZxyz(5.2697, 3.9413, 18.8916)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22317A #7A6B22
analogous
#225D7A #22317A #3F227A
triadic
#22317A #7A2231 #317A22
tetradic
#22317A #7A225D #7A6B22 #227A3F
square
#22317A #7A225D #7A6B22 #227A3F
split-complementary
#22317A #7A3F22 #5D7A22
monochromatic
#070B1A #151E4A #22317A #2F44AA #4A60CD

Accessibility & contrast

On white

11.74
#22317A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#22317A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22317A
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22317A#FFFFFF#000000##FFFFFF
##22317A1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #22317a;
/* rgb */ color: rgb(34, 49, 122);
/* oklch */ color: oklch(34.8% 0.125 269.9);
Tailwind
colors: {
  custom: {
    50: '#6a68a1',
    500: '#22317a',
    950: '#000000',
  },
}
SCSS
$custom: #22317a;
$custom-light: #6a68a1;
$custom-dark: #000000;
JSON
{
  "hex": "#22317a",
  "rgb": {
    "r": 34,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 229.773,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34817,
    "c": 0.1253,
    "h": 269.9
  },
  "luminance": 0.03942
}

Semantic roles & 50–950 ramp

primary
#22317A
secondary
#AD9C4B
accent
#C648E0
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #22317A

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

Preview Lab → · Contrast checker → · Palette generator →

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