#332986#332986

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

Color values

HEX#332986
RGBrgb(51, 41, 134)
HSLhsl(246, 53%, 34%)
HSVhsv(246, 69%, 53%)
CMYKcmyk(61.9%, 69.4%, 0%, 47.5%)
CIE-LABlab(23.71, 32.90, -50.62)
CIE-LCHlch(23.71, 60.38, 303.02°)
OKLaboklab(35.63% 0.0273 -0.1458)
OKLCHoklch(35.63% 0.148 280.6)
XYZxyz(6.4599, 4.0105, 22.9833)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332986 #7C8629
analogous
#294D86 #332986 #622986
triadic
#332986 #863329 #298633
tetradic
#332986 #86294D #7C8629 #298662
square
#332986 #86294D #7C8629 #298662
split-complementary
#332986 #866229 #4D8629
monochromatic
#0F0C28 #211B57 #332986 #4537B5 #685CCD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##332986#FFFFFF#000000##FFFFFF
##3329861.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)
#003C89
Deuteranopia (green-blind)
#003584
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #332986;
/* rgb */ color: rgb(51, 41, 134);
/* oklch */ color: oklch(35.6% 0.148 280.6);
Tailwind
colors: {
  custom: {
    50: '#7564aa',
    500: '#332986',
    950: '#000000',
  },
}
SCSS
$custom: #332986;
$custom-light: #7564aa;
$custom-dark: #000000;
JSON
{
  "hex": "#332986",
  "rgb": {
    "r": 51,
    "g": 41,
    "b": 134
  },
  "hsl": {
    "h": 246.452,
    "s": 53.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35627,
    "c": 0.14835,
    "h": 280.6
  },
  "luminance": 0.04011
}

Semantic roles & 50–950 ramp

primary
#332986
secondary
#A9B358
accent
#DD4BCD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #332986

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

Preview Lab → · Contrast checker → · Palette generator →

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