#22337A#22337A

#22337A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.2% C 0.123 H 269.0°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#22337A
RGBrgb(34, 51, 122)
HSLhsl(228, 56%, 31%)
HSVhsv(228, 72%, 48%)
CMYKcmyk(72.1%, 58.2%, 0%, 52.2%)
CIE-LABlab(24.04, 19.10, -42.57)
CIE-LCHlch(24.04, 46.66, 294.16°)
OKLaboklab(35.24% -0.0021 -0.1226)
OKLCHoklch(35.24% 0.123 269)
XYZxyz(5.3552, 4.1123, 18.9201)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22337A #7A6922
analogous
#225F7A #22337A #3D227A
triadic
#22337A #7A2233 #337A22
tetradic
#22337A #7A225F #7A6922 #227A3D
square
#22337A #7A225F #7A6922 #227A3D
split-complementary
#22337A #7A3D22 #5F7A22
monochromatic
#070B1A #151F4A #22337A #2F47AA #4A63CD

Accessibility & contrast

On white

11.52
#22337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#22337A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22337A
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22337A#FFFFFF#000000##FFFFFF
##22337A1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #22337a;
/* rgb */ color: rgb(34, 51, 122);
/* oklch */ color: oklch(35.2% 0.123 269.0);
Tailwind
colors: {
  custom: {
    50: '#696aa1',
    500: '#22337a',
    950: '#000000',
  },
}
SCSS
$custom: #22337a;
$custom-light: #696aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#22337a",
  "rgb": {
    "r": 34,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 228.409,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35239,
    "c": 0.1226,
    "h": 269
  },
  "luminance": 0.04113
}

Semantic roles & 50–950 ramp

primary
#22337A
secondary
#AD9A4B
accent
#C248E0
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #22337A

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

Preview Lab → · Contrast checker → · Palette generator →

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