#22337F#22337F

#22337F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.130 H 269.2°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#22337F
RGBrgb(34, 51, 127)
HSLhsl(229, 58%, 32%)
HSVhsv(229, 73%, 50%)
CMYKcmyk(73.2%, 59.8%, 0%, 50.2%)
CIE-LABlab(24.45, 21.06, -45.07)
CIE-LCHlch(24.45, 49.74, 295.04°)
OKLaboklab(35.67% -0.0019 -0.1299)
OKLCHoklch(35.67% 0.13 269.2)
XYZxyz(5.6730, 4.2395, 20.5939)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22337F #7F6E22
analogous
#22627F #22337F #40227F
triadic
#22337F #7F2233 #337F22
tetradic
#22337F #7F2262 #7F6E22 #227F40
square
#22337F #7F2262 #7F6E22 #227F40
split-complementary
#22337F #7F4022 #627F22
monochromatic
#080C1E #15204F #22337F #2F46AF #4C64CF

Accessibility & contrast

On white

11.36
#22337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#22337F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22337F
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22337F#FFFFFF#000000##FFFFFF
##22337F1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00367E
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #22337f;
/* rgb */ color: rgb(34, 51, 127);
/* oklch */ color: oklch(35.7% 0.130 269.2);
Tailwind
colors: {
  custom: {
    50: '#6b6aa5',
    500: '#22337f',
    950: '#000000',
  },
}
SCSS
$custom: #22337f;
$custom-light: #6b6aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#22337f",
  "rgb": {
    "r": 34,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 229.032,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35673,
    "c": 0.12992,
    "h": 269.2
  },
  "luminance": 0.0424
}

Semantic roles & 50–950 ramp

primary
#22337F
secondary
#B29F4B
accent
#C547E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #22337F

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

Preview Lab → · Contrast checker → · Palette generator →

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