#22338F#22338F

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

Color values

HEX#22338F
RGBrgb(34, 51, 143)
HSLhsl(231, 62%, 35%)
HSVhsv(231, 76%, 56%)
CMYKcmyk(76.2%, 64.3%, 0%, 43.9%)
CIE-LABlab(25.83, 27.25, -52.79)
CIE-LCHlch(25.83, 59.41, 297.30°)
OKLaboklab(37.13% -0.002 -0.1526)
OKLCHoklch(37.13% 0.153 269.3)
XYZxyz(6.7997, 4.6902, 26.5282)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22338F #8F7E22
analogous
#226A8F #22338F #47228F
triadic
#22338F #8F2233 #338F22
tetradic
#22338F #8F226A #8F7E22 #228F47
square
#22338F #8F226A #8F7E22 #228F47
split-complementary
#22338F #8F4722 #6A8F22
monochromatic
#0A102C #16215E #22338F #2E45C0 #5569D7

Accessibility & contrast

On white

10.83
#22338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#22338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22338F
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22338F#FFFFFF#000000##FFFFFF
##22338F1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #22338f;
/* rgb */ color: rgb(34, 51, 143);
/* oklch */ color: oklch(37.1% 0.153 269.3);
Tailwind
colors: {
  custom: {
    50: '#6f6ab1',
    500: '#22338f',
    950: '#000000',
  },
}
SCSS
$custom: #22338f;
$custom-light: #6f6ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#22338f",
  "rgb": {
    "r": 34,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 230.642,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37132,
    "c": 0.15259,
    "h": 269.3
  },
  "luminance": 0.04691
}

Semantic roles & 50–950 ramp

primary
#22338F
secondary
#BAAA52
accent
#CB43E5
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #22338F

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

Preview Lab → · Contrast checker → · Palette generator →

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