#22337E#22337E

#22337E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.6% C 0.128 H 269.1°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#22337E
RGBrgb(34, 51, 126)
HSLhsl(229, 58%, 31%)
HSVhsv(229, 73%, 49%)
CMYKcmyk(73%, 59.5%, 0%, 50.6%)
CIE-LABlab(24.37, 20.67, -44.57)
CIE-LCHlch(24.37, 49.13, 294.88°)
OKLaboklab(35.59% -0.0019 -0.1285)
OKLCHoklch(35.59% 0.128 269.1)
XYZxyz(5.6081, 4.2135, 20.2524)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22337E #7E6D22
analogous
#22617E #22337E #3F227E
triadic
#22337E #7E2233 #337E22
tetradic
#22337E #7E2261 #7E6D22 #227E3F
square
#22337E #7E2261 #7E6D22 #227E3F
split-complementary
#22337E #7E3F22 #617E22
monochromatic
#080C1E #151F4E #22337E #2F47AE #4C64CF

Accessibility & contrast

On white

11.40
#22337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#22337E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22337E
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22337E#FFFFFF#000000##FFFFFF
##22337E1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #22337e;
/* rgb */ color: rgb(34, 51, 126);
/* oklch */ color: oklch(35.6% 0.128 269.1);
Tailwind
colors: {
  custom: {
    50: '#6a6aa4',
    500: '#22337e',
    950: '#000000',
  },
}
SCSS
$custom: #22337e;
$custom-light: #6a6aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#22337e",
  "rgb": {
    "r": 34,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 228.913,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35585,
    "c": 0.12847,
    "h": 269.1
  },
  "luminance": 0.04214
}

Semantic roles & 50–950 ramp

primary
#22337E
secondary
#B19E4B
accent
#C447E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #22337E

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

Preview Lab → · Contrast checker → · Palette generator →

#22337E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva