#22268F#22268F

#22268F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.168 H 272.0°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#22268F
RGBrgb(34, 38, 143)
HSLhsl(238, 62%, 35%)
HSVhsv(238, 76%, 56%)
CMYKcmyk(76.2%, 73.4%, 0%, 43.9%)
CIE-LABlab(22.68, 35.70, -57.96)
CIE-LCHlch(22.68, 68.07, 301.63°)
OKLaboklab(34.84% 0.0059 -0.1677)
OKLCHoklch(34.84% 0.168 272)
XYZxyz(6.3091, 3.7088, 26.3646)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22268F #8F8B22
analogous
#225D8F #22268F #54228F
triadic
#22268F #8F2226 #268F22
tetradic
#22268F #8F225D #8F8B22 #228F54
square
#22268F #8F225D #8F8B22 #228F54
split-complementary
#22268F #8F5422 #5D8F22
monochromatic
#0A0C2C #16195E #22268F #2E33C0 #555AD7

Accessibility & contrast

On white

12.06
#22268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#22268F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22268F
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22268F#FFFFFF#000000##FFFFFF
##22268F1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #22268f;
/* rgb */ color: rgb(34, 38, 143);
/* oklch */ color: oklch(34.8% 0.168 272.0);
Tailwind
colors: {
  custom: {
    50: '#7061b1',
    500: '#22268f',
    950: '#000000',
  },
}
SCSS
$custom: #22268f;
$custom-light: #7061b1;
$custom-dark: #000000;
JSON
{
  "hex": "#22268f",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 237.798,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34843,
    "c": 0.16784,
    "h": 272
  },
  "luminance": 0.03709
}

Semantic roles & 50–950 ramp

primary
#22268F
secondary
#BAB752
accent
#DF43E5
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #22268F

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

Preview Lab → · Contrast checker → · Palette generator →

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