#22318F#22318F

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

Color values

HEX#22318F
RGBrgb(34, 49, 143)
HSLhsl(232, 62%, 35%)
HSVhsv(232, 76%, 56%)
CMYKcmyk(76.2%, 65.7%, 0%, 43.9%)
CIE-LABlab(25.32, 28.59, -53.63)
CIE-LCHlch(25.32, 60.78, 298.06°)
OKLaboklab(36.75% -0.0006 -0.1551)
OKLCHoklch(36.75% 0.155 269.8)
XYZxyz(6.7142, 4.5192, 26.4997)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22318F #8F8022
analogous
#22688F #22318F #4A228F
triadic
#22318F #8F2231 #318F22
tetradic
#22318F #8F2268 #8F8022 #228F4A
square
#22318F #8F2268 #8F8022 #228F4A
split-complementary
#22318F #8F4A22 #688F22
monochromatic
#0A0F2C #16205E #22318F #2E42C0 #5567D7

Accessibility & contrast

On white

11.03
#22318F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#22318F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22318F
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22318F#FFFFFF#000000##FFFFFF
##22318F1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #22318f;
/* rgb */ color: rgb(34, 49, 143);
/* oklch */ color: oklch(36.8% 0.155 269.8);
Tailwind
colors: {
  custom: {
    50: '#6f69b1',
    500: '#22318f',
    950: '#000000',
  },
}
SCSS
$custom: #22318f;
$custom-light: #6f69b1;
$custom-dark: #000000;
JSON
{
  "hex": "#22318f",
  "rgb": {
    "r": 34,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 231.743,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36753,
    "c": 0.15506,
    "h": 269.8
  },
  "luminance": 0.0452
}

Semantic roles & 50–950 ramp

primary
#22318F
secondary
#BAAC52
accent
#CE43E5
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #22318F

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

Preview Lab → · Contrast checker → · Palette generator →

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