#22279F#22279F

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

Color values

HEX#22279F
RGBrgb(34, 39, 159)
HSLhsl(238, 65%, 38%)
HSVhsv(238, 79%, 62%)
CMYKcmyk(78.6%, 75.5%, 0%, 37.6%)
CIE-LABlab(24.62, 40.71, -64.61)
CIE-LCHlch(24.62, 76.37, 302.22°)
OKLaboklab(36.73% 0.0028 -0.1871)
OKLCHoklch(36.73% 0.187 270.9)
XYZxyz(7.6411, 4.2935, 33.2202)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22279F #9F9A22
analogous
#22659F #22279F #5B229F
triadic
#22279F #9F2227 #279F22
tetradic
#22279F #9F2265 #9F9A22 #229F5B
square
#22279F #9F2265 #9F9A22 #229F5B
split-complementary
#22279F #9F5B22 #659F22
monochromatic
#0C0E3A #171B6D #22279F #2D33D1 #5F64DD

Accessibility & contrast

On white

11.30
#22279F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#22279F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22279F
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22279F#FFFFFF#000000##FFFFFF
##22279F1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #22279f;
/* rgb */ color: rgb(34, 39, 159);
/* oklch */ color: oklch(36.7% 0.187 270.9);
Tailwind
colors: {
  custom: {
    50: '#7463bd',
    500: '#22279f',
    950: '#000000',
  },
}
SCSS
$custom: #22279f;
$custom-light: #7463bd;
$custom-dark: #000000;
JSON
{
  "hex": "#22279f",
  "rgb": {
    "r": 34,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 237.6,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36734,
    "c": 0.18711,
    "h": 270.9
  },
  "luminance": 0.04294
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #22279F

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

Preview Lab → · Contrast checker → · Palette generator →

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