#331F48#331F48

#331F48 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.6% C 0.075 H 304.6°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#331F48
RGBrgb(51, 31, 72)
HSLhsl(269, 40%, 20%)
HSVhsv(269, 57%, 28%)
CMYKcmyk(29.2%, 56.9%, 0%, 71.8%)
CIE-LABlab(16.26, 19.38, -22.08)
CIE-LCHlch(16.26, 29.37, 311.28°)
OKLaboklab(28.62% 0.0428 -0.062)
OKLCHoklch(28.62% 0.075 304.6)
XYZxyz(3.0247, 2.1517, 6.3856)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F48 #34481F
analogous
#1F1F48 #331F48 #471F48
triadic
#331F48 #48331F #1F4833
tetradic
#331F48 #481F1F #34481F #1F4847
square
#331F48 #481F1F #34481F #1F4847
split-complementary
#331F48 #48471F #1F481F
monochromatic
#0F0915 #150D1D #331F48 #513173 #70449E

Accessibility & contrast

On white

14.68
#331F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#331F48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331F48
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F48#FFFFFF#000000##FFFFFF
##331F481.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122849
Deuteranopia (green-blind)
#182847
Tritanopia (blue-blind)
#2F2630
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331f48;
/* rgb */ color: rgb(51, 31, 72);
/* oklch */ color: oklch(28.6% 0.075 304.6);
Tailwind
colors: {
  custom: {
    50: '#6c5b7b',
    500: '#331f48',
    950: '#000000',
  },
}
SCSS
$custom: #331f48;
$custom-light: #6c5b7b;
$custom-dark: #000000;
JSON
{
  "hex": "#331f48",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 72
  },
  "hsl": {
    "h": 269.268,
    "s": 39.806,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28618,
    "c": 0.07534,
    "h": 304.6
  },
  "luminance": 0.02152
}

Semantic roles & 50–950 ramp

primary
#331F48
secondary
#627D46
accent
#D05895
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070409
muted
#7A797B

Preview Lab

Preview with #331F48

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

Preview Lab → · Contrast checker → · Palette generator →

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