#22317F#22317F

#22317F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.3% C 0.133 H 269.9°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#22317F
RGBrgb(34, 49, 127)
HSLhsl(230, 58%, 32%)
HSVhsv(230, 73%, 50%)
CMYKcmyk(73.2%, 61.4%, 0%, 50.2%)
CIE-LABlab(23.90, 22.45, -45.96)
CIE-LCHlch(23.90, 51.15, 296.03°)
OKLaboklab(35.26% -0.0002 -0.1326)
OKLCHoklch(35.26% 0.133 269.9)
XYZxyz(5.5875, 4.0685, 20.5654)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22317F #7F7022
analogous
#22607F #22317F #42227F
triadic
#22317F #7F2231 #317F22
tetradic
#22317F #7F2260 #7F7022 #227F42
square
#22317F #7F2260 #7F7022 #227F42
split-complementary
#22317F #7F4222 #607F22
monochromatic
#080C1E #151E4F #22317F #2F44AF #4C61CF

Accessibility & contrast

On white

11.58
#22317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#22317F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22317F
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22317F#FFFFFF#000000##FFFFFF
##22317F1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #22317f;
/* rgb */ color: rgb(34, 49, 127);
/* oklch */ color: oklch(35.3% 0.133 269.9);
Tailwind
colors: {
  custom: {
    50: '#6b68a5',
    500: '#22317f',
    950: '#000000',
  },
}
SCSS
$custom: #22317f;
$custom-light: #6b68a5;
$custom-dark: #000000;
JSON
{
  "hex": "#22317f",
  "rgb": {
    "r": 34,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 230.323,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35262,
    "c": 0.13258,
    "h": 269.9
  },
  "luminance": 0.04069
}

Semantic roles & 50–950 ramp

primary
#22317F
secondary
#B2A14B
accent
#C847E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #22317F

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

Preview Lab → · Contrast checker → · Palette generator →

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