#331475#331475

#331475 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.150 H 288.8°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#331475
RGBrgb(51, 20, 117)
HSLhsl(259, 71%, 27%)
HSVhsv(259, 83%, 46%)
CMYKcmyk(56.4%, 82.9%, 0%, 54.1%)
CIE-LABlab(17.87, 39.17, -49.42)
CIE-LCHlch(17.87, 63.06, 308.40°)
OKLaboklab(30.98% 0.0485 -0.1422)
OKLCHoklch(30.98% 0.15 288.8)
XYZxyz(4.8253, 2.4882, 17.0522)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331475 #567514
analogous
#142675 #331475 #641475
triadic
#331475 #753314 #147533
tetradic
#331475 #751426 #567514 #147564
square
#331475 #751426 #567514 #147564
split-complementary
#331475 #756414 #267514
monochromatic
#0B041A #1C0B41 #331475 #4A1DA9 #6229DA

Accessibility & contrast

On white

14.02
#331475 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#331475 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331475
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331475#FFFFFF#000000##FFFFFF
##3314751.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002973
Tritanopia (blue-blind)
#183145
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331475;
/* rgb */ color: rgb(51, 20, 117);
/* oklch */ color: oklch(31.0% 0.150 288.8);
Tailwind
colors: {
  custom: {
    50: '#73569e',
    500: '#331475',
    950: '#000000',
  },
}
SCSS
$custom: #331475;
$custom-light: #73569e;
$custom-dark: #000000;
JSON
{
  "hex": "#331475",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 117
  },
  "hsl": {
    "h": 259.175,
    "s": 70.803,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30978,
    "c": 0.15021,
    "h": 288.8
  },
  "luminance": 0.02488
}

Semantic roles & 50–950 ramp

primary
#331475
secondary
#87AB3A
accent
#EE3AB4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331475

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

Preview Lab → · Contrast checker → · Palette generator →

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