#331C57#331C57

#331C57 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.2% C 0.102 H 297.7°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#331C57
RGBrgb(51, 28, 87)
HSLhsl(263, 51%, 23%)
HSVhsv(263, 68%, 34%)
CMYKcmyk(41.4%, 67.8%, 0%, 65.9%)
CIE-LABlab(16.61, 25.78, -31.72)
CIE-LCHlch(16.61, 40.87, 309.10°)
OKLaboklab(29.22% 0.0474 -0.0903)
OKLCHoklch(29.22% 0.102 297.7)
XYZxyz(3.5004, 2.2224, 9.2595)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C57 #40571C
analogous
#1C2257 #331C57 #501C57
triadic
#331C57 #57331C #1C5733
tetradic
#331C57 #571C22 #40571C #1C5750
square
#331C57 #571C22 #40571C #1C5750
split-complementary
#331C57 #57501C #22571C
monochromatic
#0E0717 #180D29 #331C57 #4E2B85 #693AB4

Accessibility & contrast

On white

14.54
#331C57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#331C57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C57
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C57#FFFFFF#000000##FFFFFF
##331C571.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#012856
Tritanopia (blue-blind)
#2A2936
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331c57;
/* rgb */ color: rgb(51, 28, 87);
/* oklch */ color: oklch(29.2% 0.102 297.7);
Tailwind
colors: {
  custom: {
    50: '#6e5987',
    500: '#331c57',
    950: '#000000',
  },
}
SCSS
$custom: #331c57;
$custom-light: #6e5987;
$custom-dark: #000000;
JSON
{
  "hex": "#331c57",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 87
  },
  "hsl": {
    "h": 263.39,
    "s": 51.304,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29224,
    "c": 0.10196,
    "h": 297.7
  },
  "luminance": 0.02222
}

Semantic roles & 50–950 ramp

primary
#331C57
secondary
#708D42
accent
#DB4DA4
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331C57

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

Preview Lab → · Contrast checker → · Palette generator →

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