#331F53#331F53

#331F53 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.4% C 0.091 H 298.3°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#331F53
RGBrgb(51, 31, 83)
HSLhsl(263, 46%, 22%)
HSVhsv(263, 63%, 33%)
CMYKcmyk(38.6%, 62.7%, 0%, 67.5%)
CIE-LABlab(17.03, 22.64, -28.36)
CIE-LCHlch(17.03, 36.29, 308.61°)
OKLaboklab(29.43% 0.0434 -0.0804)
OKLCHoklch(29.43% 0.091 298.3)
XYZxyz(3.4162, 2.3083, 8.4475)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F53 #3F531F
analogous
#1F2553 #331F53 #4D1F53
triadic
#331F53 #53331F #1F5333
tetradic
#331F53 #531F25 #3F531F #1F534D
square
#331F53 #531F25 #3F531F #1F534D
split-complementary
#331F53 #534D1F #25531F
monochromatic
#0E0816 #180E26 #331F53 #4E3080 #6A40AC

Accessibility & contrast

On white

14.37
#331F53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#331F53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331F53
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F53#FFFFFF#000000##FFFFFF
##331F531.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062A55
Deuteranopia (green-blind)
#0E2952
Tritanopia (blue-blind)
#2C2A35
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331f53;
/* rgb */ color: rgb(51, 31, 83);
/* oklch */ color: oklch(29.4% 0.091 298.3);
Tailwind
colors: {
  custom: {
    50: '#6d5b84',
    500: '#331f53',
    950: '#000000',
  },
}
SCSS
$custom: #331f53;
$custom-light: #6d5b84;
$custom-dark: #000000;
JSON
{
  "hex": "#331f53",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 83
  },
  "hsl": {
    "h": 263.077,
    "s": 45.614,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29429,
    "c": 0.09135,
    "h": 298.3
  },
  "luminance": 0.02308
}

Semantic roles & 50–950 ramp

primary
#331F53
secondary
#6E8846
accent
#D553A3
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #331F53

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

Preview Lab → · Contrast checker → · Palette generator →

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