#332999#332999

#332999 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.5% C 0.173 H 278.0°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#332999
RGBrgb(51, 41, 153)
HSLhsl(245, 58%, 38%)
HSVhsv(245, 73%, 60%)
CMYKcmyk(66.7%, 73.2%, 0%, 40%)
CIE-LABlab(25.53, 39.25, -59.40)
CIE-LCHlch(25.53, 71.20, 303.46°)
OKLaboklab(37.49% 0.024 -0.1715)
OKLCHoklch(37.49% 0.173 278)
XYZxyz(7.9061, 4.5889, 30.5999)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332999 #8F9929
analogous
#295799 #332999 #6B2999
triadic
#332999 #993329 #299933
tetradic
#332999 #992957 #8F9929 #29996B
square
#332999 #992957 #8F9929 #29996B
split-complementary
#332999 #996B29 #579929
monochromatic
#130F38 #231C69 #332999 #4336C9 #7066D6

Accessibility & contrast

On white

10.95
#332999 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#332999 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332999
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332999#FFFFFF#000000##FFFFFF
##3329991.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332999;
/* rgb */ color: rgb(51, 41, 153);
/* oklch */ color: oklch(37.5% 0.173 278.0);
Tailwind
colors: {
  custom: {
    50: '#7964b8',
    500: '#332999',
    950: '#000000',
  },
}
SCSS
$custom: #332999;
$custom-light: #7964b8;
$custom-dark: #000000;
JSON
{
  "hex": "#332999",
  "rgb": {
    "r": 51,
    "g": 41,
    "b": 153
  },
  "hsl": {
    "h": 245.357,
    "s": 57.732,
    "l": 38.039
  },
  "oklch": {
    "l": 0.3749,
    "c": 0.17318,
    "h": 278
  },
  "luminance": 0.0459
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #332999

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

Preview Lab → · Contrast checker → · Palette generator →

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