#332097#332097

#332097 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.180 H 279.6°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#332097
RGBrgb(51, 32, 151)
HSLhsl(250, 65%, 36%)
HSVhsv(250, 79%, 59%)
CMYKcmyk(66.2%, 78.8%, 0%, 40.8%)
CIE-LABlab(23.57, 43.56, -61.40)
CIE-LCHlch(23.57, 75.28, 305.35°)
OKLaboklab(36.05% 0.0301 -0.1773)
OKLCHoklch(36.05% 0.18 279.6)
XYZxyz(7.4659, 3.9706, 29.6451)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332097 #849720
analogous
#204897 #332097 #6E2097
triadic
#332097 #973320 #209733
tetradic
#332097 #972048 #849720 #20976E
square
#332097 #972048 #849720 #20976E
split-complementary
#332097 #976E20 #489720
monochromatic
#110B32 #221564 #332097 #442BC9 #6B56DB

Accessibility & contrast

On white

11.70
#332097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#332097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332097
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332097#FFFFFF#000000##FFFFFF
##3320971.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #332097;
/* rgb */ color: rgb(51, 32, 151);
/* oklch */ color: oklch(36.0% 0.180 279.6);
Tailwind
colors: {
  custom: {
    50: '#795fb7',
    500: '#332097',
    950: '#000000',
  },
}
SCSS
$custom: #332097;
$custom-light: #795fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#332097",
  "rgb": {
    "r": 51,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 249.58,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36047,
    "c": 0.1798,
    "h": 279.6
  },
  "luminance": 0.03971
}

Semantic roles & 50–950 ramp

primary
#332097
secondary
#AEBF54
accent
#E840CD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332097

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

Preview Lab → · Contrast checker → · Palette generator →

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