#332397#332397

#332397 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.177 H 279.2°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#332397
RGBrgb(51, 35, 151)
HSLhsl(248, 62%, 36%)
HSVhsv(248, 77%, 59%)
CMYKcmyk(66.2%, 76.8%, 0%, 40.8%)
CIE-LABlab(24.13, 41.97, -60.48)
CIE-LCHlch(24.13, 73.62, 304.76°)
OKLaboklab(36.44% 0.0284 -0.1746)
OKLCHoklch(36.44% 0.177 279.2)
XYZxyz(7.5504, 4.1396, 29.6733)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332397 #879723
analogous
#234D97 #332397 #6D2397
triadic
#332397 #973323 #239733
tetradic
#332397 #97234D #879723 #23976D
square
#332397 #97234D #879723 #23976D
split-complementary
#332397 #976D23 #4D9723
monochromatic
#110C34 #221765 #332397 #442FC9 #6D5BD9

Accessibility & contrast

On white

11.49
#332397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#332397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332397
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332397#FFFFFF#000000##FFFFFF
##3323971.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #332397;
/* rgb */ color: rgb(51, 35, 151);
/* oklch */ color: oklch(36.4% 0.177 279.2);
Tailwind
colors: {
  custom: {
    50: '#7961b7',
    500: '#332397',
    950: '#000000',
  },
}
SCSS
$custom: #332397;
$custom-light: #7961b7;
$custom-dark: #000000;
JSON
{
  "hex": "#332397",
  "rgb": {
    "r": 51,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 248.276,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36435,
    "c": 0.17692,
    "h": 279.2
  },
  "luminance": 0.0414
}

Semantic roles & 50–950 ramp

primary
#332397
secondary
#B0BE58
accent
#E542CF
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332397

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

Preview Lab → · Contrast checker → · Palette generator →

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