#22268A#22268A

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

Color values

HEX#22268A
RGBrgb(34, 38, 138)
HSLhsl(238, 60%, 34%)
HSVhsv(238, 75%, 54%)
CMYKcmyk(75.4%, 72.5%, 0%, 45.9%)
CIE-LABlab(22.16, 33.91, -55.71)
CIE-LCHlch(22.16, 65.22, 301.33°)
OKLaboklab(34.31% 0.0066 -0.1612)
OKLCHoklch(34.31% 0.161 272.3)
XYZxyz(5.9387, 3.5607, 24.4141)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22268A #8A8622
analogous
#225A8A #22268A #52228A
triadic
#22268A #8A2226 #268A22
tetradic
#22268A #8A225A #8A8622 #228A52
square
#22268A #8A225A #8A8622 #228A52
split-complementary
#22268A #8A5222 #5A8A22
monochromatic
#0A0B28 #161859 #22268A #2E34BB #5257D4

Accessibility & contrast

On white

12.26
#22268A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#22268A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22268A
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22268A#FFFFFF#000000##FFFFFF
##22268A1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22268a;
/* rgb */ color: rgb(34, 38, 138);
/* oklch */ color: oklch(34.3% 0.161 272.3);
Tailwind
colors: {
  custom: {
    50: '#6f61ad',
    500: '#22268a',
    950: '#000000',
  },
}
SCSS
$custom: #22268a;
$custom-light: #6f61ad;
$custom-dark: #000000;
JSON
{
  "hex": "#22268a",
  "rgb": {
    "r": 34,
    "g": 38,
    "b": 138
  },
  "hsl": {
    "h": 237.692,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34311,
    "c": 0.1613,
    "h": 272.3
  },
  "luminance": 0.03561
}

Semantic roles & 50–950 ramp

primary
#22268A
secondary
#B8B450
accent
#DD44E4
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #22268A

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

Preview Lab → · Contrast checker → · Palette generator →

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