#22268C#22268C

#22268C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.164 H 272.2°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#22268C
RGBrgb(34, 38, 140)
HSLhsl(238, 61%, 34%)
HSVhsv(238, 76%, 55%)
CMYKcmyk(75.7%, 72.9%, 0%, 45.1%)
CIE-LABlab(22.37, 34.63, -56.61)
CIE-LCHlch(22.37, 66.36, 301.46°)
OKLaboklab(34.52% 0.0063 -0.1638)
OKLCHoklch(34.52% 0.164 272.2)
XYZxyz(6.0848, 3.6191, 25.1837)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22268C #8C8822
analogous
#225B8C #22268C #53228C
triadic
#22268C #8C2226 #268C22
tetradic
#22268C #8C225B #8C8822 #228C53
square
#22268C #8C225B #8C8822 #228C53
split-complementary
#22268C #8C5322 #5B8C22
monochromatic
#0A0B2A #16195B #22268C #2E33BD #5358D5

Accessibility & contrast

On white

12.18
#22268C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#22268C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22268C
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22268C#FFFFFF#000000##FFFFFF
##22268C1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #22268c;
/* rgb */ color: rgb(34, 38, 140);
/* oklch */ color: oklch(34.5% 0.164 272.2);
Tailwind
colors: {
  custom: {
    50: '#6f61af',
    500: '#22268c',
    950: '#000000',
  },
}
SCSS
$custom: #22268c;
$custom-light: #6f61af;
$custom-dark: #000000;
JSON
{
  "hex": "#22268c",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 140
  },
  "hsl": {
    "h": 237.736,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34523,
    "c": 0.16393,
    "h": 272.2
  },
  "luminance": 0.0362
}

Semantic roles & 50–950 ramp

primary
#22268C
secondary
#B9B551
accent
#DE44E4
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #22268C

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

Preview Lab → · Contrast checker → · Palette generator →

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