#22318A#22318A

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

Color values

HEX#22318A
RGBrgb(34, 49, 138)
HSLhsl(231, 60%, 34%)
HSVhsv(231, 75%, 54%)
CMYKcmyk(75.4%, 64.5%, 0%, 45.9%)
CIE-LABlab(24.86, 26.69, -51.28)
CIE-LCHlch(24.86, 57.81, 297.50°)
OKLaboklab(36.28% -0.0004 -0.1482)
OKLCHoklch(36.28% 0.148 269.8)
XYZxyz(6.3439, 4.3710, 24.5492)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22318A #8A7B22
analogous
#22658A #22318A #47228A
triadic
#22318A #8A2231 #318A22
tetradic
#22318A #8A2265 #8A7B22 #228A47
square
#22318A #8A2265 #8A7B22 #228A47
split-complementary
#22318A #8A4722 #658A22
monochromatic
#0A0E28 #162059 #22318A #2E42BB #5265D4

Accessibility & contrast

On white

11.20
#22318A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#22318A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22318A
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22318A#FFFFFF#000000##FFFFFF
##22318A1.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #22318a;
/* rgb */ color: rgb(34, 49, 138);
/* oklch */ color: oklch(36.3% 0.148 269.8);
Tailwind
colors: {
  custom: {
    50: '#6e69ad',
    500: '#22318a',
    950: '#000000',
  },
}
SCSS
$custom: #22318a;
$custom-light: #6e69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#22318a",
  "rgb": {
    "r": 34,
    "g": 49,
    "b": 138
  },
  "hsl": {
    "h": 231.346,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36277,
    "c": 0.14817,
    "h": 269.8
  },
  "luminance": 0.04372
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #22318A

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

Preview Lab → · Contrast checker → · Palette generator →

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