#332396#332396

#332396 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.176 H 279.4°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#332396
RGBrgb(51, 35, 150)
HSLhsl(248, 62%, 36%)
HSVhsv(248, 77%, 59%)
CMYKcmyk(66%, 76.7%, 0%, 41.2%)
CIE-LABlab(24.02, 41.65, -60.04)
CIE-LCHlch(24.02, 73.07, 304.75°)
OKLaboklab(36.33% 0.0286 -0.1733)
OKLCHoklch(36.33% 0.176 279.4)
XYZxyz(7.4695, 4.1073, 29.2474)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332396 #869623
analogous
#234D96 #332396 #6D2396
triadic
#332396 #963323 #239633
tetradic
#332396 #96234D #869623 #23966D
square
#332396 #96234D #869623 #23966D
split-complementary
#332396 #966D23 #4D9623
monochromatic
#110C33 #221764 #332396 #442FC8 #6C5BD9

Accessibility & contrast

On white

11.53
#332396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#332396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332396
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332396#FFFFFF#000000##FFFFFF
##3323961.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #332396;
/* rgb */ color: rgb(51, 35, 150);
/* oklch */ color: oklch(36.3% 0.176 279.4);
Tailwind
colors: {
  custom: {
    50: '#7961b6',
    500: '#332396',
    950: '#000000',
  },
}
SCSS
$custom: #332396;
$custom-light: #7961b6;
$custom-dark: #000000;
JSON
{
  "hex": "#332396",
  "rgb": {
    "r": 51,
    "g": 35,
    "b": 150
  },
  "hsl": {
    "h": 248.348,
    "s": 62.162,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3633,
    "c": 0.17567,
    "h": 279.4
  },
  "luminance": 0.04108
}

Semantic roles & 50–950 ramp

primary
#332396
secondary
#AFBD58
accent
#E543CF
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332396

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

Preview Lab → · Contrast checker → · Palette generator →

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