#22167F#22167F

#22167F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.8% C 0.163 H 276.0°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#22167F
RGBrgb(34, 22, 127)
HSLhsl(247, 70%, 29%)
HSVhsv(247, 83%, 50%)
CMYKcmyk(73.2%, 82.7%, 0%, 50.2%)
CIE-LABlab(17.67, 39.37, -56.19)
CIE-LCHlch(17.67, 68.61, 305.02°)
OKLaboklab(30.77% 0.017 -0.1624)
OKLCHoklch(30.77% 0.163 276)
XYZxyz(4.7761, 2.4458, 20.2949)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22167F #737F16
analogous
#163F7F #22167F #57167F
triadic
#22167F #7F2216 #167F22
tetradic
#22167F #7F163F #737F16 #167F57
square
#22167F #7F163F #737F16 #167F57
split-complementary
#22167F #7F5716 #3F7F16
monochromatic
#07051A #140D4B #22167F #301FB3 #4734DC

Accessibility & contrast

On white

14.10
#22167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#22167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22167F
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22167F#FFFFFF#000000##FFFFFF
##22167F1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #22167f;
/* rgb */ color: rgb(34, 22, 127);
/* oklch */ color: oklch(30.8% 0.163 276.0);
Tailwind
colors: {
  custom: {
    50: '#6d57a5',
    500: '#22167f',
    950: '#000000',
  },
}
SCSS
$custom: #22167f;
$custom-light: #6d57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#22167f",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 246.857,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30772,
    "c": 0.16332,
    "h": 276
  },
  "luminance": 0.02446
}

Semantic roles & 50–950 ramp

primary
#22167F
secondary
#A6B43D
accent
#ED3BD9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #22167F

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

Preview Lab → · Contrast checker → · Palette generator →

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