#332888#332888

#332888 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.152 H 280.5°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#332888
RGBrgb(51, 40, 136)
HSLhsl(247, 55%, 35%)
HSVhsv(247, 71%, 53%)
CMYKcmyk(62.5%, 70.6%, 0%, 46.7%)
CIE-LABlab(23.67, 34.19, -51.94)
CIE-LCHlch(23.67, 62.18, 303.35°)
OKLaboklab(35.66% 0.0279 -0.1497)
OKLCHoklch(35.66% 0.152 280.5)
XYZxyz(6.5666, 3.9985, 23.7135)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332888 #7D8828
analogous
#284D88 #332888 #632888
triadic
#332888 #883328 #288833
tetradic
#332888 #88284D #7D8828 #288863
square
#332888 #88284D #7D8828 #288863
split-complementary
#332888 #886328 #4D8828
monochromatic
#100C29 #211A59 #332888 #4536B7 #695BCF

Accessibility & contrast

On white

11.67
#332888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#332888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332888
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332888#FFFFFF#000000##FFFFFF
##3328881.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003586
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #332888;
/* rgb */ color: rgb(51, 40, 136);
/* oklch */ color: oklch(35.7% 0.152 280.5);
Tailwind
colors: {
  custom: {
    50: '#7563ac',
    500: '#332888',
    950: '#000000',
  },
}
SCSS
$custom: #332888;
$custom-light: #7563ac;
$custom-dark: #000000;
JSON
{
  "hex": "#332888",
  "rgb": {
    "r": 51,
    "g": 40,
    "b": 136
  },
  "hsl": {
    "h": 246.875,
    "s": 54.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35655,
    "c": 0.15225,
    "h": 280.5
  },
  "luminance": 0.03999
}

Semantic roles & 50–950 ramp

primary
#332888
secondary
#AAB458
accent
#DE4ACD
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #332888

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

Preview Lab → · Contrast checker → · Palette generator →

#332888 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva