#331F69#331F69

#331F69 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.3% C 0.122 H 289.9°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#331F69
RGBrgb(51, 31, 105)
HSLhsl(256, 54%, 27%)
HSVhsv(256, 70%, 41%)
CMYKcmyk(51.4%, 70.5%, 0%, 58.8%)
CIE-LABlab(18.82, 29.53, -40.07)
CIE-LCHlch(18.82, 49.78, 306.38°)
OKLaboklab(31.29% 0.0416 -0.1148)
OKLCHoklch(31.29% 0.122 289.9)
XYZxyz(4.4043, 2.7035, 13.6516)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F69 #55691F
analogous
#1F3069 #331F69 #581F69
triadic
#331F69 #69331F #1F6933
tetradic
#331F69 #691F30 #55691F #1F6958
square
#331F69 #691F30 #55691F #1F6958
split-complementary
#331F69 #69581F #30691F
monochromatic
#0B0718 #1C113A #331F69 #4A2D98 #623DC6

Accessibility & contrast

On white

13.63
#331F69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#331F69 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331F69
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F69#FFFFFF#000000##FFFFFF
##331F691.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6B
Deuteranopia (green-blind)
#002C68
Tritanopia (blue-blind)
#213141
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #331f69;
/* rgb */ color: rgb(51, 31, 105);
/* oklch */ color: oklch(31.3% 0.122 289.9);
Tailwind
colors: {
  custom: {
    50: '#705c95',
    500: '#331f69',
    950: '#000000',
  },
}
SCSS
$custom: #331f69;
$custom-light: #705c95;
$custom-dark: #000000;
JSON
{
  "hex": "#331f69",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 105
  },
  "hsl": {
    "h": 256.216,
    "s": 54.412,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31292,
    "c": 0.12214,
    "h": 289.9
  },
  "luminance": 0.02704
}

Semantic roles & 50–950 ramp

primary
#331F69
secondary
#869D47
accent
#DE4AB6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #331F69

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

Preview Lab → · Contrast checker → · Palette generator →

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