#22338E#22338E

#22338E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.0% C 0.151 H 269.3°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#22338E
RGBrgb(34, 51, 142)
HSLhsl(231, 61%, 35%)
HSVhsv(231, 76%, 56%)
CMYKcmyk(76.1%, 64.1%, 0%, 44.3%)
CIE-LABlab(25.74, 26.87, -52.32)
CIE-LCHlch(25.74, 58.81, 297.18°)
OKLaboklab(37.04% -0.0019 -0.1512)
OKLCHoklch(37.04% 0.151 269.3)
XYZxyz(6.7243, 4.6600, 26.1310)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22338E #8E7D22
analogous
#22698E #22338E #47228E
triadic
#22338E #8E2233 #338E22
tetradic
#22338E #8E2269 #8E7D22 #228E47
square
#22338E #8E2269 #8E7D22 #228E47
split-complementary
#22338E #8E4722 #698E22
monochromatic
#0A102B #16215D #22338E #2E45BF #5469D6

Accessibility & contrast

On white

10.87
#22338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22338E
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22338E#FFFFFF#000000##FFFFFF
##22338E1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #22338e;
/* rgb */ color: rgb(34, 51, 142);
/* oklch */ color: oklch(37.0% 0.151 269.3);
Tailwind
colors: {
  custom: {
    50: '#6e6ab0',
    500: '#22338e',
    950: '#000000',
  },
}
SCSS
$custom: #22338e;
$custom-light: #6e6ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#22338e",
  "rgb": {
    "r": 34,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 230.556,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37038,
    "c": 0.15121,
    "h": 269.3
  },
  "luminance": 0.04661
}

Semantic roles & 50–950 ramp

primary
#22338E
secondary
#BAAA52
accent
#CB43E4
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #22338E

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

Preview Lab → · Contrast checker → · Palette generator →

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