#332976#332976

#332976 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.126 H 283.3°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#332976
RGBrgb(51, 41, 118)
HSLhsl(248, 48%, 31%)
HSVhsv(248, 65%, 46%)
CMYKcmyk(56.8%, 65.3%, 0%, 53.7%)
CIE-LABlab(22.29, 27.48, -42.81)
CIE-LCHlch(22.29, 50.87, 302.70°)
OKLaboklab(34.16% 0.0292 -0.1229)
OKLCHoklch(34.16% 0.126 283.3)
XYZxyz(5.4272, 3.5974, 17.5444)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332976 #6C7629
analogous
#294576 #332976 #592976
triadic
#332976 #763329 #297633
tetradic
#332976 #762945 #6C7629 #297659
square
#332976 #762945 #6C7629 #297659
split-complementary
#332976 #765929 #457629
monochromatic
#0C091B #1F1949 #332976 #4739A3 #6455C4

Accessibility & contrast

On white

12.21
#332976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#332976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332976
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332976#FFFFFF#000000##FFFFFF
##3329761.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003878
Deuteranopia (green-blind)
#003374
Tritanopia (blue-blind)
#153C4B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #332976;
/* rgb */ color: rgb(51, 41, 118);
/* oklch */ color: oklch(34.2% 0.126 283.3);
Tailwind
colors: {
  custom: {
    50: '#72639e',
    500: '#332976',
    950: '#000000',
  },
}
SCSS
$custom: #332976;
$custom-light: #72639e;
$custom-dark: #000000;
JSON
{
  "hex": "#332976",
  "rgb": {
    "r": 51,
    "g": 41,
    "b": 118
  },
  "hsl": {
    "h": 247.792,
    "s": 48.428,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34163,
    "c": 0.12629,
    "h": 283.3
  },
  "luminance": 0.03598
}

Semantic roles & 50–950 ramp

primary
#332976
secondary
#9DA853
accent
#D850C6
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #332976

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

Preview Lab → · Contrast checker → · Palette generator →

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