#332197#332197

#332197 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.179 H 279.5°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#332197
RGBrgb(51, 33, 151)
HSLhsl(249, 64%, 36%)
HSVhsv(249, 78%, 59%)
CMYKcmyk(66.2%, 78.1%, 0%, 40.8%)
CIE-LABlab(23.75, 43.04, -61.10)
CIE-LCHlch(23.75, 74.73, 305.16°)
OKLaboklab(36.17% 0.0296 -0.1764)
OKLCHoklch(36.17% 0.179 279.5)
XYZxyz(7.4932, 4.0253, 29.6542)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332197 #859721
analogous
#214A97 #332197 #6E2197
triadic
#332197 #973321 #219733
tetradic
#332197 #97214A #859721 #21976E
square
#332197 #97214A #859721 #21976E
split-complementary
#332197 #976E21 #4A9721
monochromatic
#110B33 #221665 #332197 #442CC9 #6C58DA

Accessibility & contrast

On white

11.63
#332197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#332197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332197
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332197#FFFFFF#000000##FFFFFF
##3321971.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332197;
/* rgb */ color: rgb(51, 33, 151);
/* oklch */ color: oklch(36.2% 0.179 279.5);
Tailwind
colors: {
  custom: {
    50: '#795fb7',
    500: '#332197',
    950: '#000000',
  },
}
SCSS
$custom: #332197;
$custom-light: #795fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#332197",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 249.153,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36174,
    "c": 0.17886,
    "h": 279.5
  },
  "luminance": 0.04026
}

Semantic roles & 50–950 ramp

primary
#332197
secondary
#AEBE55
accent
#E741CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332197

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

Preview Lab → · Contrast checker → · Palette generator →

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