#331F60#331F60

#331F60 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.5% C 0.110 H 292.9°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#331F60
RGBrgb(51, 31, 96)
HSLhsl(258, 51%, 25%)
HSVhsv(258, 68%, 38%)
CMYKcmyk(46.9%, 67.7%, 0%, 62.4%)
CIE-LABlab(18.05, 26.68, -35.41)
CIE-LCHlch(18.05, 44.33, 306.99°)
OKLaboklab(30.49% 0.0427 -0.1011)
OKLCHoklch(30.49% 0.11 292.9)
XYZxyz(3.9660, 2.5282, 11.3431)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F60 #4C601F
analogous
#1F2B60 #331F60 #541F60
triadic
#331F60 #60331F #1F6033
tetradic
#331F60 #601F2B #4C601F #1F6054
square
#331F60 #601F2B #4C601F #1F6054
split-complementary
#331F60 #60541F #2B601F
monochromatic
#0C0717 #1A1032 #331F60 #4C2E8E #643DBD

Accessibility & contrast

On white

13.95
#331F60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#331F60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331F60
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F60#FFFFFF#000000##FFFFFF
##331F601.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D62
Deuteranopia (green-blind)
#002B5F
Tritanopia (blue-blind)
#262E3C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331f60;
/* rgb */ color: rgb(51, 31, 96);
/* oklch */ color: oklch(30.5% 0.110 292.9);
Tailwind
colors: {
  custom: {
    50: '#6f5c8e',
    500: '#331f60',
    950: '#000000',
  },
}
SCSS
$custom: #331f60;
$custom-light: #6f5c8e;
$custom-dark: #000000;
JSON
{
  "hex": "#331f60",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 96
  },
  "hsl": {
    "h": 258.462,
    "s": 51.181,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30494,
    "c": 0.10978,
    "h": 292.9
  },
  "luminance": 0.02528
}

Semantic roles & 50–950 ramp

primary
#331F60
secondary
#7C9546
accent
#DB4DAF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #331F60

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

Preview Lab → · Contrast checker → · Palette generator →

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