#22317C#22317C

#22317C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.0% C 0.128 H 269.9°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#22317C
RGBrgb(34, 49, 124)
HSLhsl(230, 57%, 31%)
HSVhsv(230, 73%, 49%)
CMYKcmyk(72.6%, 60.5%, 0%, 51.4%)
CIE-LABlab(23.64, 21.28, -44.48)
CIE-LCHlch(23.64, 49.31, 295.56°)
OKLaboklab(34.99% -0.0003 -0.1282)
OKLCHoklch(34.99% 0.128 269.9)
XYZxyz(5.3948, 3.9914, 19.5510)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22317C #7C6D22
analogous
#225E7C #22317C #40227C
triadic
#22317C #7C2231 #317C22
tetradic
#22317C #7C225E #7C6D22 #227C40
square
#22317C #7C225E #7C6D22 #227C40
split-complementary
#22317C #7C4022 #5E7C22
monochromatic
#080B1C #151E4C #22317C #2F44AC #4B61CE

Accessibility & contrast

On white

11.68
#22317C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#22317C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22317C
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22317C#FFFFFF#000000##FFFFFF
##22317C1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #22317c;
/* rgb */ color: rgb(34, 49, 124);
/* oklch */ color: oklch(35.0% 0.128 269.9);
Tailwind
colors: {
  custom: {
    50: '#6a68a3',
    500: '#22317c',
    950: '#000000',
  },
}
SCSS
$custom: #22317c;
$custom-light: #6a68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#22317c",
  "rgb": {
    "r": 34,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 230,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34994,
    "c": 0.12823,
    "h": 269.9
  },
  "luminance": 0.03992
}

Semantic roles & 50–950 ramp

primary
#22317C
secondary
#AF9E4B
accent
#C748E0
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #22317C

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

Preview Lab → · Contrast checker → · Palette generator →

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