#331775#331775

#331775 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.147 H 288.3°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#331775
RGBrgb(51, 23, 117)
HSLhsl(258, 67%, 27%)
HSVhsv(258, 80%, 46%)
CMYKcmyk(56.4%, 80.3%, 0%, 54.1%)
CIE-LABlab(18.37, 37.72, -48.59)
CIE-LCHlch(18.37, 61.51, 307.82°)
OKLaboklab(31.33% 0.0463 -0.1398)
OKLCHoklch(31.33% 0.147 288.3)
XYZxyz(4.8816, 2.6007, 17.0709)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331775 #597517
analogous
#172A75 #331775 #621775
triadic
#331775 #753317 #177533
tetradic
#331775 #75172A #597517 #177562
square
#331775 #75172A #597517 #177562
split-complementary
#331775 #756217 #2A7517
monochromatic
#0B051A #1D0D42 #331775 #4921A8 #6230D6

Accessibility & contrast

On white

13.81
#331775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#331775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331775
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331775#FFFFFF#000000##FFFFFF
##3317751.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F78
Deuteranopia (green-blind)
#002A73
Tritanopia (blue-blind)
#183245
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #331775;
/* rgb */ color: rgb(51, 23, 117);
/* oklch */ color: oklch(31.3% 0.147 288.3);
Tailwind
colors: {
  custom: {
    50: '#73589e',
    500: '#331775',
    950: '#000000',
  },
}
SCSS
$custom: #331775;
$custom-light: #73589e;
$custom-dark: #000000;
JSON
{
  "hex": "#331775",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 117
  },
  "hsl": {
    "h": 257.872,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31328,
    "c": 0.14724,
    "h": 288.3
  },
  "luminance": 0.02601
}

Semantic roles & 50–950 ramp

primary
#331775
secondary
#8AAA3D
accent
#EA3EB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331775

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

Preview Lab → · Contrast checker → · Palette generator →

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