#22236B#22236B

#22236B is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.122 H 275.8°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#22236B
RGBrgb(34, 35, 107)
HSLhsl(239, 52%, 28%)
HSVhsv(239, 68%, 42%)
CMYKcmyk(68.2%, 67.3%, 0%, 58%)
CIE-LABlab(18.38, 24.47, -42.16)
CIE-LCHlch(18.38, 48.74, 300.13°)
OKLaboklab(30.64% 0.0124 -0.1215)
OKLCHoklch(30.64% 0.122 275.8)
XYZxyz(3.9137, 2.6034, 14.2033)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22236B #6B6A22
analogous
#22476B #22236B #45226B
triadic
#22236B #6B2223 #236B22
tetradic
#22236B #6B2247 #6B6A22 #226B45
square
#22236B #6B2247 #6B6A22 #226B45
split-complementary
#22236B #6B4522 #476B22
monochromatic
#070817 #13143D #22236B #313299 #4446C4

Accessibility & contrast

On white

13.81
#22236B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#22236B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22236B
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22236B#FFFFFF#000000##FFFFFF
##22236B1.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#002A6A
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #22236b;
/* rgb */ color: rgb(34, 35, 107);
/* oklch */ color: oklch(30.6% 0.122 275.8);
Tailwind
colors: {
  custom: {
    50: '#675e96',
    500: '#22236b',
    950: '#000000',
  },
}
SCSS
$custom: #22236b;
$custom-light: #675e96;
$custom-dark: #000000;
JSON
{
  "hex": "#22236b",
  "rgb": {
    "r": 34,
    "g": 35,
    "b": 107
  },
  "hsl": {
    "h": 239.178,
    "s": 51.773,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3064,
    "c": 0.12216,
    "h": 275.8
  },
  "luminance": 0.02604
}

Semantic roles & 50–950 ramp

primary
#22236B
secondary
#9F9D4A
accent
#D94DDB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #22236B

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

Preview Lab → · Contrast checker → · Palette generator →

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