#22318D#22318D

#22318D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.6% C 0.152 H 269.8°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#22318D
RGBrgb(34, 49, 141)
HSLhsl(232, 61%, 34%)
HSVhsv(232, 76%, 55%)
CMYKcmyk(75.9%, 65.2%, 0%, 44.7%)
CIE-LABlab(25.13, 27.84, -52.69)
CIE-LCHlch(25.13, 59.59, 297.85°)
OKLaboklab(36.56% -0.0005 -0.1523)
OKLCHoklch(36.56% 0.152 269.8)
XYZxyz(6.5641, 4.4591, 25.7089)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22318D #8D7E22
analogous
#22678D #22318D #49228D
triadic
#22318D #8D2231 #318D22
tetradic
#22318D #8D2267 #8D7E22 #228D49
square
#22318D #8D2267 #8D7E22 #228D49
split-complementary
#22318D #8D4922 #678D22
monochromatic
#0A0F2A #16205C #22318D #2E42BE #5466D6

Accessibility & contrast

On white

11.10
#22318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#22318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22318D
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22318D#FFFFFF#000000##FFFFFF
##22318D1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #22318d;
/* rgb */ color: rgb(34, 49, 141);
/* oklch */ color: oklch(36.6% 0.152 269.8);
Tailwind
colors: {
  custom: {
    50: '#6e69af',
    500: '#22318d',
    950: '#000000',
  },
}
SCSS
$custom: #22318d;
$custom-light: #6e69af;
$custom-dark: #000000;
JSON
{
  "hex": "#22318d",
  "rgb": {
    "r": 34,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 231.589,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36561,
    "c": 0.15232,
    "h": 269.8
  },
  "luminance": 0.0446
}

Semantic roles & 50–950 ramp

primary
#22318D
secondary
#B9AB51
accent
#CE44E4
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #22318D

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

Preview Lab → · Contrast checker → · Palette generator →

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