#22338B#22338B

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

Color values

HEX#22338B
RGBrgb(34, 51, 139)
HSLhsl(230, 61%, 34%)
HSVhsv(230, 76%, 55%)
CMYKcmyk(75.5%, 63.3%, 0%, 45.5%)
CIE-LABlab(25.48, 25.71, -50.89)
CIE-LCHlch(25.48, 57.02, 296.81°)
OKLaboklab(36.76% -0.0019 -0.147)
OKLCHoklch(36.76% 0.147 269.3)
XYZxyz(6.5021, 4.5711, 24.9607)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22338B #8B7A22
analogous
#22688B #22338B #46228B
triadic
#22338B #8B2233 #338B22
tetradic
#22338B #8B2268 #8B7A22 #228B46
square
#22338B #8B2268 #8B7A22 #228B46
split-complementary
#22338B #8B4622 #688B22
monochromatic
#0A0F29 #16215A #22338B #2E45BC #5368D5

Accessibility & contrast

On white

10.97
#22338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#22338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22338B
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22338B#FFFFFF#000000##FFFFFF
##22338B1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #22338b;
/* rgb */ color: rgb(34, 51, 139);
/* oklch */ color: oklch(36.8% 0.147 269.3);
Tailwind
colors: {
  custom: {
    50: '#6e6aae',
    500: '#22338b',
    950: '#000000',
  },
}
SCSS
$custom: #22338b;
$custom-light: #6e6aae;
$custom-dark: #000000;
JSON
{
  "hex": "#22338b",
  "rgb": {
    "r": 34,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 230.286,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36758,
    "c": 0.14703,
    "h": 269.3
  },
  "luminance": 0.04572
}

Semantic roles & 50–950 ramp

primary
#22338B
secondary
#B8A850
accent
#CA44E4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #22338B

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

Preview Lab → · Contrast checker → · Palette generator →

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