#332997#332997

#332997 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.3% C 0.171 H 278.2°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#332997
RGBrgb(51, 41, 151)
HSLhsl(245, 57%, 38%)
HSVhsv(245, 73%, 59%)
CMYKcmyk(66.2%, 72.8%, 0%, 40.8%)
CIE-LABlab(25.33, 38.59, -58.50)
CIE-LCHlch(25.33, 70.08, 303.41°)
OKLaboklab(37.29% 0.0244 -0.1689)
OKLCHoklch(37.29% 0.171 278.2)
XYZxyz(7.7423, 4.5234, 29.7373)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332997 #8D9729
analogous
#295697 #332997 #6A2997
triadic
#332997 #973329 #299733
tetradic
#332997 #972956 #8D9729 #29976A
square
#332997 #972956 #8D9729 #29976A
split-complementary
#332997 #976A29 #569729
monochromatic
#120F37 #231C67 #332997 #4336C7 #6F65D5

Accessibility & contrast

On white

11.02
#332997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#332997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332997
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332997#FFFFFF#000000##FFFFFF
##3329971.0011.021.9011.02
#FFFFFF11.021.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #332997;
/* rgb */ color: rgb(51, 41, 151);
/* oklch */ color: oklch(37.3% 0.171 278.2);
Tailwind
colors: {
  custom: {
    50: '#7864b7',
    500: '#332997',
    950: '#000000',
  },
}
SCSS
$custom: #332997;
$custom-light: #7864b7;
$custom-dark: #000000;
JSON
{
  "hex": "#332997",
  "rgb": {
    "r": 51,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 245.455,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37288,
    "c": 0.17063,
    "h": 278.2
  },
  "luminance": 0.04524
}

Semantic roles & 50–950 ramp

primary
#332997
secondary
#B3BB61
accent
#E147D3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #332997

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

Preview Lab → · Contrast checker → · Palette generator →

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