#22267F#22267F

#22267F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.147 H 273.1°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#22267F
RGBrgb(34, 38, 127)
HSLhsl(237, 58%, 32%)
HSVhsv(237, 73%, 50%)
CMYKcmyk(73.2%, 70.1%, 0%, 50.2%)
CIE-LABlab(21.05, 29.90, -50.62)
CIE-LCHlch(21.05, 58.79, 300.57°)
OKLaboklab(33.17% 0.008 -0.1463)
OKLCHoklch(33.17% 0.147 273.1)
XYZxyz(5.1823, 3.2581, 20.4303)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22267F #7F7B22
analogous
#22557F #22267F #4D227F
triadic
#22267F #7F2226 #267F22
tetradic
#22267F #7F2255 #7F7B22 #227F4D
square
#22267F #7F2255 #7F7B22 #227F4D
split-complementary
#22267F #7F4D22 #557F22
monochromatic
#08091E #15184F #22267F #2F34AF #4C52CF

Accessibility & contrast

On white

12.71
#22267F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#22267F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22267F
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22267F#FFFFFF#000000##FFFFFF
##22267F1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #22267f;
/* rgb */ color: rgb(34, 38, 127);
/* oklch */ color: oklch(33.2% 0.147 273.1);
Tailwind
colors: {
  custom: {
    50: '#6c61a5',
    500: '#22267f',
    950: '#000000',
  },
}
SCSS
$custom: #22267f;
$custom-light: #6c61a5;
$custom-dark: #000000;
JSON
{
  "hex": "#22267f",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 127
  },
  "hsl": {
    "h": 237.419,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33171,
    "c": 0.14653,
    "h": 273.1
  },
  "luminance": 0.03259
}

Semantic roles & 50–950 ramp

primary
#22267F
secondary
#B2AD4B
accent
#DA47E1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #22267F

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

Preview Lab → · Contrast checker → · Palette generator →

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