#22237B#22237B

#22237B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.145 H 274.2°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#22237B
RGBrgb(34, 35, 123)
HSLhsl(239, 57%, 31%)
HSVhsv(239, 72%, 48%)
CMYKcmyk(72.4%, 71.5%, 0%, 51.8%)
CIE-LABlab(19.93, 30.39, -49.92)
CIE-LCHlch(19.93, 58.44, 301.33°)
OKLaboklab(32.24% 0.0106 -0.1443)
OKLCHoklch(32.24% 0.145 274.2)
XYZxyz(4.8347, 2.9717, 19.0539)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22237B #7B7A22
analogous
#224F7B #22237B #4D227B
triadic
#22237B #7B2223 #237B22
tetradic
#22237B #7B224F #7B7A22 #227B4D
square
#22237B #7B224F #7B7A22 #227B4D
split-complementary
#22237B #7B4D22 #4F7B22
monochromatic
#07081B #15154B #22237B #2F31AB #4A4CCD

Accessibility & contrast

On white

13.17
#22237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#22237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22237B
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22237B#FFFFFF#000000##FFFFFF
##22237B1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002C79
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #22237b;
/* rgb */ color: rgb(34, 35, 123);
/* oklch */ color: oklch(32.2% 0.145 274.2);
Tailwind
colors: {
  custom: {
    50: '#6b5ea2',
    500: '#22237b',
    950: '#000000',
  },
}
SCSS
$custom: #22237b;
$custom-light: #6b5ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#22237b",
  "rgb": {
    "r": 34,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 239.326,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32241,
    "c": 0.14466,
    "h": 274.2
  },
  "luminance": 0.02972
}

Semantic roles & 50–950 ramp

primary
#22237B
secondary
#AEAD4B
accent
#DE48E0
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #22237B

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

Preview Lab → · Contrast checker → · Palette generator →

#22237B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva