#33228A#33228A

#33228A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.162 H 281.5°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#33228A
RGBrgb(51, 34, 138)
HSLhsl(250, 60%, 34%)
HSVhsv(250, 75%, 54%)
CMYKcmyk(63%, 75.4%, 0%, 45.9%)
CIE-LABlab(22.59, 38.37, -54.95)
CIE-LCHlch(22.59, 67.02, 304.92°)
OKLaboklab(34.95% 0.0322 -0.1585)
OKLCHoklch(34.95% 0.162 281.5)
XYZxyz(6.5233, 3.6824, 24.4068)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33228A #798A22
analogous
#22458A #33228A #67228A
triadic
#33228A #8A3322 #228A33
tetradic
#33228A #8A2245 #798A22 #228A67
square
#33228A #8A2245 #798A22 #228A67
split-complementary
#33228A #8A6722 #458A22
monochromatic
#0F0A28 #211659 #33228A #452EBB #6752D4

Accessibility & contrast

On white

12.09
#33228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#33228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33228A
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33228A#FFFFFF#000000##FFFFFF
##33228A1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003288
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #33228a;
/* rgb */ color: rgb(51, 34, 138);
/* oklch */ color: oklch(34.9% 0.162 281.5);
Tailwind
colors: {
  custom: {
    50: '#765fad',
    500: '#33228a',
    950: '#000000',
  },
}
SCSS
$custom: #33228a;
$custom-light: #765fad;
$custom-dark: #000000;
JSON
{
  "hex": "#33228a",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 249.808,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34949,
    "c": 0.16171,
    "h": 281.5
  },
  "luminance": 0.03683
}

Semantic roles & 50–950 ramp

primary
#33228A
secondary
#A7B850
accent
#E444CA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #33228A

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

Preview Lab → · Contrast checker → · Palette generator →

#33228A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva