#332899#332899

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

Color values

HEX#332899
RGBrgb(51, 40, 153)
HSLhsl(246, 59%, 38%)
HSVhsv(246, 74%, 60%)
CMYKcmyk(66.7%, 73.9%, 0%, 40%)
CIE-LABlab(25.32, 39.83, -59.74)
CIE-LCHlch(25.32, 71.80, 303.69°)
OKLaboklab(37.34% 0.0247 -0.1725)
OKLCHoklch(37.34% 0.174 278.1)
XYZxyz(7.8719, 4.5206, 30.5885)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332899 #8E9928
analogous
#285599 #332899 #6C2899
triadic
#332899 #993328 #289933
tetradic
#332899 #992855 #8E9928 #28996C
square
#332899 #992855 #8E9928 #28996C
split-complementary
#332899 #996C28 #559928
monochromatic
#130F38 #231B68 #332899 #4335CA #7065D7

Accessibility & contrast

On white

11.03
#332899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #332899
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332899#FFFFFF#000000##FFFFFF
##3328991.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003797
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #332899;
/* rgb */ color: rgb(51, 40, 153);
/* oklch */ color: oklch(37.3% 0.174 278.1);
Tailwind
colors: {
  custom: {
    50: '#7964b8',
    500: '#332899',
    950: '#000000',
  },
}
SCSS
$custom: #332899;
$custom-light: #7964b8;
$custom-dark: #000000;
JSON
{
  "hex": "#332899",
  "rgb": {
    "r": 51,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 245.841,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37342,
    "c": 0.17426,
    "h": 278.1
  },
  "luminance": 0.04521
}

Semantic roles & 50–950 ramp

primary
#332899
secondary
#B4BD60
accent
#E246D3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #332899

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

Preview Lab → · Contrast checker → · Palette generator →

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