#22279C#22279C

#22279C is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.183 H 271.0°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#22279C
RGBrgb(34, 39, 156)
HSLhsl(238, 64%, 37%)
HSVhsv(238, 78%, 61%)
CMYKcmyk(78.2%, 75%, 0%, 38.8%)
CIE-LABlab(24.29, 39.68, -63.32)
CIE-LCHlch(24.29, 74.72, 302.07°)
OKLaboklab(36.4% 0.0033 -0.1833)
OKLCHoklch(36.4% 0.183 271)
XYZxyz(7.3839, 4.1906, 31.8658)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22279C #9C9722
analogous
#22649C #22279C #5A229C
triadic
#22279C #9C2227 #279C22
tetradic
#22279C #9C2264 #9C9722 #229C5A
square
#22279C #9C2264 #9C9722 #229C5A
split-complementary
#22279C #9C5A22 #649C22
monochromatic
#0C0E38 #171A6A #22279C #2D34CE #5D62DC

Accessibility & contrast

On white

11.42
#22279C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#22279C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22279C
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22279C#FFFFFF#000000##FFFFFF
##22279C1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#00349A
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #22279c;
/* rgb */ color: rgb(34, 39, 156);
/* oklch */ color: oklch(36.4% 0.183 271.0);
Tailwind
colors: {
  custom: {
    50: '#7362ba',
    500: '#22279c',
    950: '#000000',
  },
}
SCSS
$custom: #22279c;
$custom-light: #7362ba;
$custom-dark: #000000;
JSON
{
  "hex": "#22279c",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 156
  },
  "hsl": {
    "h": 237.541,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36404,
    "c": 0.18336,
    "h": 271
  },
  "luminance": 0.04191
}

Semantic roles & 50–950 ramp

primary
#22279C
secondary
#C0BC5A
accent
#E041E7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #22279C

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

Preview Lab → · Contrast checker → · Palette generator →

#22279C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva