#331757#331757

#331757 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.110 H 299.4°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#331757
RGBrgb(51, 23, 87)
HSLhsl(266, 58%, 22%)
HSVhsv(266, 74%, 34%)
CMYKcmyk(41.4%, 73.6%, 0%, 65.9%)
CIE-LABlab(15.51, 28.78, -33.50)
CIE-LCHlch(15.51, 44.17, 310.66°)
OKLaboklab(28.43% 0.0537 -0.0955)
OKLCHoklch(28.43% 0.11 299.4)
XYZxyz(3.3915, 2.0047, 9.2232)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331757 #3B5717
analogous
#171B57 #331757 #531757
triadic
#331757 #573317 #175733
tetradic
#331757 #57171B #3B5717 #175753
square
#331757 #57171B #3B5717 #175753
split-complementary
#331757 #575317 #1B5717
monochromatic
#0E0618 #170A27 #331757 #4F2487 #6C31B8

Accessibility & contrast

On white

14.99
#331757 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#331757 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331757
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331757#FFFFFF#000000##FFFFFF
##3317571.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002759
Deuteranopia (green-blind)
#002656
Tritanopia (blue-blind)
#2B2635
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331757;
/* rgb */ color: rgb(51, 23, 87);
/* oklch */ color: oklch(28.4% 0.110 299.4);
Tailwind
colors: {
  custom: {
    50: '#6e5687',
    500: '#331757',
    950: '#000000',
  },
}
SCSS
$custom: #331757;
$custom-light: #6e5687;
$custom-dark: #000000;
JSON
{
  "hex": "#331757",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 87
  },
  "hsl": {
    "h": 266.25,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.2843,
    "c": 0.10959,
    "h": 299.4
  },
  "luminance": 0.02005
}

Semantic roles & 50–950 ramp

primary
#331757
secondary
#6A8E3C
accent
#E1469E
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331757

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

Preview Lab → · Contrast checker → · Palette generator →

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