#22279E#22279E

#22279E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.6% C 0.186 H 270.9°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#22279E
RGBrgb(34, 39, 158)
HSLhsl(238, 65%, 38%)
HSVhsv(238, 78%, 62%)
CMYKcmyk(78.5%, 75.3%, 0%, 38%)
CIE-LABlab(24.51, 40.37, -64.18)
CIE-LCHlch(24.51, 75.82, 302.17°)
OKLaboklab(36.62% 0.003 -0.1858)
OKLCHoklch(36.62% 0.186 270.9)
XYZxyz(7.5547, 4.2589, 32.7650)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22279E #9E9922
analogous
#22659E #22279E #5B229E
triadic
#22279E #9E2227 #279E22
tetradic
#22279E #9E2265 #9E9922 #229E5B
square
#22279E #9E2265 #9E9922 #229E5B
split-complementary
#22279E #9E5B22 #659E22
monochromatic
#0C0E39 #171B6C #22279E #2D33D0 #5E63DC

Accessibility & contrast

On white

11.34
#22279E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#22279E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22279E
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22279E#FFFFFF#000000##FFFFFF
##22279E1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00349C
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #22279e;
/* rgb */ color: rgb(34, 39, 158);
/* oklch */ color: oklch(36.6% 0.186 270.9);
Tailwind
colors: {
  custom: {
    50: '#7462bc',
    500: '#22279e',
    950: '#000000',
  },
}
SCSS
$custom: #22279e;
$custom-light: #7462bc;
$custom-dark: #000000;
JSON
{
  "hex": "#22279e",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 158
  },
  "hsl": {
    "h": 237.581,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36624,
    "c": 0.18586,
    "h": 270.9
  },
  "luminance": 0.0426
}

Semantic roles & 50–950 ramp

primary
#22279E
secondary
#C1BD5B
accent
#E140E8
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #22279E

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

Preview Lab → · Contrast checker → · Palette generator →

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