#22316C#22316C

#22316C is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.6% C 0.104 H 269.4°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#22316C
RGBrgb(34, 49, 108)
HSLhsl(228, 52%, 28%)
HSVhsv(228, 69%, 42%)
CMYKcmyk(68.5%, 54.6%, 0%, 57.6%)
CIE-LABlab(22.37, 15.01, -36.32)
CIE-LCHlch(22.37, 39.30, 292.45°)
OKLaboklab(33.64% -0.0012 -0.1042)
OKLCHoklch(33.64% 0.104 269.4)
XYZxyz(4.4639, 3.6190, 14.6477)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22316C #6C5D22
analogous
#22566C #22316C #38226C
triadic
#22316C #6C2231 #316C22
tetradic
#22316C #6C2256 #6C5D22 #226C38
square
#22316C #6C2256 #6C5D22 #226C38
split-complementary
#22316C #6C3822 #566C22
monochromatic
#070B17 #131C3D #22316C #31469B #445EC4

Accessibility & contrast

On white

12.18
#22316C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#22316C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22316C
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22316C#FFFFFF#000000##FFFFFF
##22316C1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D396E
Deuteranopia (green-blind)
#00326B
Tritanopia (blue-blind)
#003F49
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #22316c;
/* rgb */ color: rgb(34, 49, 108);
/* oklch */ color: oklch(33.6% 0.104 269.4);
Tailwind
colors: {
  custom: {
    50: '#666897',
    500: '#22316c',
    950: '#000000',
  },
}
SCSS
$custom: #22316c;
$custom-light: #666897;
$custom-dark: #000000;
JSON
{
  "hex": "#22316c",
  "rgb": {
    "r": 34,
    "g": 49,
    "b": 108
  },
  "hsl": {
    "h": 227.838,
    "s": 52.113,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33636,
    "c": 0.10424,
    "h": 269.4
  },
  "luminance": 0.03619
}

Semantic roles & 50–950 ramp

primary
#22316C
secondary
#A08E4A
accent
#BF4CDC
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #22316C

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

Preview Lab → · Contrast checker → · Palette generator →

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