#331C45#331C45

#331C45 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.8% C 0.077 H 308.1°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#331C45
RGBrgb(51, 28, 69)
HSLhsl(274, 42%, 19%)
HSVhsv(274, 59%, 27%)
CMYKcmyk(26.1%, 59.4%, 0%, 72.9%)
CIE-LABlab(15.30, 20.52, -21.54)
CIE-LCHlch(15.30, 29.75, 313.60°)
OKLaboklab(27.84% 0.0474 -0.0604)
OKLCHoklch(27.84% 0.077 308.1)
XYZxyz(2.8545, 1.9640, 5.8578)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C45 #2E451C
analogous
#1F1C45 #331C45 #451C43
triadic
#331C45 #45331C #1C4533
tetradic
#331C45 #451F1C #2E451C #1C4345
square
#331C45 #451F1C #2E451C #1C4345
split-complementary
#331C45 #43451C #1C451F
monochromatic
#100916 #130A19 #331C45 #532E71 #733F9C

Accessibility & contrast

On white

15.08
#331C45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#331C45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C45
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C45#FFFFFF#000000##FFFFFF
##331C451.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102546
Deuteranopia (green-blind)
#172744
Tritanopia (blue-blind)
#30232D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331c45;
/* rgb */ color: rgb(51, 28, 69);
/* oklch */ color: oklch(27.8% 0.077 308.1);
Tailwind
colors: {
  custom: {
    50: '#6c5979',
    500: '#331c45',
    950: '#000000',
  },
}
SCSS
$custom: #331c45;
$custom-light: #6c5979;
$custom-dark: #000000;
JSON
{
  "hex": "#331c45",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 69
  },
  "hsl": {
    "h": 273.659,
    "s": 42.268,
    "l": 19.02
  },
  "oklch": {
    "l": 0.27839,
    "c": 0.07678,
    "h": 308.1
  },
  "luminance": 0.01964
}

Semantic roles & 50–950 ramp

primary
#331C45
secondary
#5B7A42
accent
#D2568C
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #331C45

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

Preview Lab → · Contrast checker → · Palette generator →

#331C45 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva