#332491#332491

#332491 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.168 H 280.0°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#332491
RGBrgb(51, 36, 145)
HSLhsl(248, 60%, 35%)
HSVhsv(248, 75%, 57%)
CMYKcmyk(64.8%, 75.2%, 0%, 43.1%)
CIE-LABlab(23.70, 39.50, -57.48)
CIE-LCHlch(23.70, 69.74, 304.50°)
OKLaboklab(35.95% 0.0291 -0.1659)
OKLCHoklch(35.95% 0.168 280)
XYZxyz(7.1053, 4.0093, 27.1820)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332491 #829124
analogous
#244B91 #332491 #692491
triadic
#332491 #913324 #249133
tetradic
#332491 #91244B #829124 #249169
square
#332491 #91244B #829124 #249169
split-complementary
#332491 #916924 #4B9124
monochromatic
#110C2F #221860 #332491 #4430C2 #6B59D6

Accessibility & contrast

On white

11.65
#332491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332491
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332491#FFFFFF#000000##FFFFFF
##3324911.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C94
Deuteranopia (green-blind)
#00348F
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #332491;
/* rgb */ color: rgb(51, 36, 145);
/* oklch */ color: oklch(35.9% 0.168 280.0);
Tailwind
colors: {
  custom: {
    50: '#7861b2',
    500: '#332491',
    950: '#000000',
  },
}
SCSS
$custom: #332491;
$custom-light: #7861b2;
$custom-dark: #000000;
JSON
{
  "hex": "#332491",
  "rgb": {
    "r": 51,
    "g": 36,
    "b": 145
  },
  "hsl": {
    "h": 248.257,
    "s": 60.221,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35949,
    "c": 0.16841,
    "h": 280
  },
  "luminance": 0.0401
}

Semantic roles & 50–950 ramp

primary
#332491
secondary
#ADBA56
accent
#E344CD
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332491

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

Preview Lab → · Contrast checker → · Palette generator →

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