#22318B#22318B

#22318B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.150 H 269.8°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#22318B
RGBrgb(34, 49, 139)
HSLhsl(231, 61%, 34%)
HSVhsv(231, 76%, 55%)
CMYKcmyk(75.5%, 64.7%, 0%, 45.5%)
CIE-LABlab(24.95, 27.07, -51.75)
CIE-LCHlch(24.95, 58.40, 297.62°)
OKLaboklab(36.37% -0.0005 -0.1495)
OKLCHoklch(36.37% 0.15 269.8)
XYZxyz(6.4166, 4.4001, 24.9322)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22318B #8B7C22
analogous
#22668B #22318B #48228B
triadic
#22318B #8B2231 #318B22
tetradic
#22318B #8B2266 #8B7C22 #228B48
square
#22318B #8B2266 #8B7C22 #228B48
split-complementary
#22318B #8B4822 #668B22
monochromatic
#0A0E29 #16205A #22318B #2E42BC #5365D5

Accessibility & contrast

On white

11.17
#22318B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#22318B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22318B
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22318B#FFFFFF#000000##FFFFFF
##22318B1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003689
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #22318b;
/* rgb */ color: rgb(34, 49, 139);
/* oklch */ color: oklch(36.4% 0.150 269.8);
Tailwind
colors: {
  custom: {
    50: '#6e69ae',
    500: '#22318b',
    950: '#000000',
  },
}
SCSS
$custom: #22318b;
$custom-light: #6e69ae;
$custom-dark: #000000;
JSON
{
  "hex": "#22318b",
  "rgb": {
    "r": 34,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 231.429,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36371,
    "c": 0.14955,
    "h": 269.8
  },
  "luminance": 0.04401
}

Semantic roles & 50–950 ramp

primary
#22318B
secondary
#B8AA50
accent
#CD44E4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #22318B

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

Preview Lab → · Contrast checker → · Palette generator →

#22318B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva