#332B4E#332B4E

#332B4E is a dark, moderate violet. Relative luminance 0.030; OKLCH L 31.5% C 0.062 H 293.0°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#332B4E
RGBrgb(51, 43, 78)
HSLhsl(254, 29%, 24%)
HSVhsv(254, 45%, 31%)
CMYKcmyk(34.6%, 44.9%, 0%, 69.4%)
CIE-LABlab(19.97, 12.93, -20.30)
CIE-LCHlch(19.97, 24.07, 302.50°)
OKLaboklab(31.52% 0.0242 -0.0568)
OKLCHoklch(31.52% 0.062 293)
XYZxyz(3.6039, 2.9816, 7.5919)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332B4E #464E2B
analogous
#2B344E #332B4E #442B4E
triadic
#332B4E #4E332B #2B4E33
tetradic
#332B4E #4E2B34 #464E2B #2B4E44
square
#332B4E #4E2B34 #464E2B #2B4E44
split-complementary
#332B4E #4E442B #344E2B
monochromatic
#0D0B14 #191527 #332B4E #4D4175 #67569D

Accessibility & contrast

On white

13.15
#332B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#332B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332B4E
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332B4E#FFFFFF#000000##FFFFFF
##332B4E1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21314F
Deuteranopia (green-blind)
#21304D
Tritanopia (blue-blind)
#2D3138
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #332b4e;
/* rgb */ color: rgb(51, 43, 78);
/* oklch */ color: oklch(31.5% 0.062 293.0);
Tailwind
colors: {
  custom: {
    50: '#6c6480',
    500: '#332b4e',
    950: '#000000',
  },
}
SCSS
$custom: #332b4e;
$custom-light: #6c6480;
$custom-dark: #000000;
JSON
{
  "hex": "#332b4e",
  "rgb": {
    "r": 51,
    "g": 43,
    "b": 78
  },
  "hsl": {
    "h": 253.714,
    "s": 28.926,
    "l": 23.725
  },
  "oklch": {
    "l": 0.31521,
    "c": 0.06177,
    "h": 293
  },
  "luminance": 0.02982
}

Semantic roles & 50–950 ramp

primary
#332B4E
secondary
#768055
accent
#C563AF
background
#F6F5F7
surface
#EBEAEE
border
#C6C6C9
text
#07050A
muted
#7A797C

Preview Lab

Preview with #332B4E

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

Preview Lab → · Contrast checker → · Palette generator →

#332B4E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva