#22315E#22315E

#22315E is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.6% C 0.082 H 267.8°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#22315E
RGBrgb(34, 49, 94)
HSLhsl(225, 47%, 25%)
HSVhsv(225, 64%, 37%)
CMYKcmyk(63.8%, 47.9%, 0%, 63.1%)
CIE-LABlab(21.37, 9.54, -28.81)
CIE-LCHlch(21.37, 30.34, 288.32°)
OKLaboklab(32.56% -0.0031 -0.0821)
OKLCHoklch(32.56% 0.082 267.8)
XYZxyz(3.7777, 3.3445, 11.0340)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22315E #5E4F22
analogous
#224F5E #22315E #31225E
triadic
#22315E #5E2231 #315E22
tetradic
#22315E #5E224F #5E4F22 #225E31
square
#22315E #5E224F #5E4F22 #225E31
split-complementary
#22315E #5E3122 #4F5E22
monochromatic
#080C16 #121A31 #22315E #32488B #4360B8

Accessibility & contrast

On white

12.58
#22315E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#22315E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22315E
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22315E#FFFFFF#000000##FFFFFF
##22315E1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3660
Deuteranopia (green-blind)
#14315D
Tritanopia (blue-blind)
#003B43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #22315e;
/* rgb */ color: rgb(34, 49, 94);
/* oklch */ color: oklch(32.6% 0.082 267.8);
Tailwind
colors: {
  custom: {
    50: '#63688c',
    500: '#22315e',
    950: '#000000',
  },
}
SCSS
$custom: #22315e;
$custom-light: #63688c;
$custom-dark: #000000;
JSON
{
  "hex": "#22315e",
  "rgb": {
    "r": 34,
    "g": 49,
    "b": 94
  },
  "hsl": {
    "h": 225,
    "s": 46.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.32558,
    "c": 0.08218,
    "h": 267.8
  },
  "luminance": 0.03345
}

Semantic roles & 50–950 ramp

primary
#22315E
secondary
#92804A
accent
#B551D7
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #22315E

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

Preview Lab → · Contrast checker → · Palette generator →

#22315E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva