#22338D#22338D

#22338D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.150 H 269.3°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#22338D
RGBrgb(34, 51, 141)
HSLhsl(230, 61%, 34%)
HSVhsv(230, 76%, 55%)
CMYKcmyk(75.9%, 63.8%, 0%, 44.7%)
CIE-LABlab(25.65, 26.48, -51.84)
CIE-LCHlch(25.65, 58.22, 297.06°)
OKLaboklab(36.94% -0.0019 -0.1498)
OKLCHoklch(36.94% 0.15 269.3)
XYZxyz(6.6496, 4.6301, 25.7374)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22338D #8D7C22
analogous
#22698D #22338D #47228D
triadic
#22338D #8D2233 #338D22
tetradic
#22338D #8D2269 #8D7C22 #228D47
square
#22338D #8D2269 #8D7C22 #228D47
split-complementary
#22338D #8D4722 #698D22
monochromatic
#0A0F2A #16215C #22338D #2E45BE #5468D6

Accessibility & contrast

On white

10.90
#22338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#22338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22338D
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22338D#FFFFFF#000000##FFFFFF
##22338D1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #22338d;
/* rgb */ color: rgb(34, 51, 141);
/* oklch */ color: oklch(36.9% 0.150 269.3);
Tailwind
colors: {
  custom: {
    50: '#6e6aaf',
    500: '#22338d',
    950: '#000000',
  },
}
SCSS
$custom: #22338d;
$custom-light: #6e6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#22338d",
  "rgb": {
    "r": 34,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 230.467,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36944,
    "c": 0.14982,
    "h": 269.3
  },
  "luminance": 0.04631
}

Semantic roles & 50–950 ramp

primary
#22338D
secondary
#B9A951
accent
#CB44E4
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #22338D

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

Preview Lab → · Contrast checker → · Palette generator →

#22338D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva