#332697#332697

#332697 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.174 H 278.7°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#332697
RGBrgb(51, 38, 151)
HSLhsl(247, 60%, 37%)
HSVhsv(247, 75%, 59%)
CMYKcmyk(66.2%, 74.8%, 0%, 40.8%)
CIE-LABlab(24.71, 40.32, -59.52)
CIE-LCHlch(24.71, 71.89, 304.11°)
OKLaboklab(36.85% 0.0264 -0.1718)
OKLCHoklch(36.85% 0.174 278.7)
XYZxyz(7.6425, 4.3238, 29.7040)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332697 #8A9726
analogous
#265197 #332697 #6C2697
triadic
#332697 #973326 #269733
tetradic
#332697 #972651 #8A9726 #26976C
square
#332697 #972651 #8A9726 #26976C
split-complementary
#332697 #976C26 #519726
monochromatic
#120D35 #221A66 #332697 #4432C8 #6E60D7

Accessibility & contrast

On white

11.26
#332697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#332697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332697
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332697#FFFFFF#000000##FFFFFF
##3326971.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #332697;
/* rgb */ color: rgb(51, 38, 151);
/* oklch */ color: oklch(36.8% 0.174 278.7);
Tailwind
colors: {
  custom: {
    50: '#7962b7',
    500: '#332697',
    950: '#000000',
  },
}
SCSS
$custom: #332697;
$custom-light: #7962b7;
$custom-dark: #000000;
JSON
{
  "hex": "#332697",
  "rgb": {
    "r": 51,
    "g": 38,
    "b": 151
  },
  "hsl": {
    "h": 246.903,
    "s": 59.788,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36849,
    "c": 0.17385,
    "h": 278.7
  },
  "luminance": 0.04324
}

Semantic roles & 50–950 ramp

primary
#332697
secondary
#B1BC5C
accent
#E345D1
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332697

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

Preview Lab → · Contrast checker → · Palette generator →

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