#22268B#22268B

#22268B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.163 H 272.3°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#22268B
RGBrgb(34, 38, 139)
HSLhsl(238, 61%, 34%)
HSVhsv(238, 76%, 55%)
CMYKcmyk(75.5%, 72.7%, 0%, 45.5%)
CIE-LABlab(22.27, 34.27, -56.16)
CIE-LCHlch(22.27, 65.79, 301.39°)
OKLaboklab(34.42% 0.0065 -0.1625)
OKLCHoklch(34.42% 0.163 272.3)
XYZxyz(6.0114, 3.5898, 24.7972)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22268B #8B8722
analogous
#225B8B #22268B #53228B
triadic
#22268B #8B2226 #268B22
tetradic
#22268B #8B225B #8B8722 #228B53
square
#22268B #8B225B #8B8722 #228B53
split-complementary
#22268B #8B5322 #5B8B22
monochromatic
#0A0B29 #16195A #22268B #2E33BC #5358D5

Accessibility & contrast

On white

12.22
#22268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22268B
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22268B#FFFFFF#000000##FFFFFF
##22268B1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #22268b;
/* rgb */ color: rgb(34, 38, 139);
/* oklch */ color: oklch(34.4% 0.163 272.3);
Tailwind
colors: {
  custom: {
    50: '#6f61ae',
    500: '#22268b',
    950: '#000000',
  },
}
SCSS
$custom: #22268b;
$custom-light: #6f61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#22268b",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 237.714,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34417,
    "c": 0.16262,
    "h": 272.3
  },
  "luminance": 0.0359
}

Semantic roles & 50–950 ramp

primary
#22268B
secondary
#B8B550
accent
#DE44E4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #22268B

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

Preview Lab → · Contrast checker → · Palette generator →

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