#331A75#331A75

#331A75 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.144 H 287.7°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#331A75
RGBrgb(51, 26, 117)
HSLhsl(256, 64%, 28%)
HSVhsv(256, 78%, 46%)
CMYKcmyk(56.4%, 77.8%, 0%, 54.1%)
CIE-LABlab(18.91, 36.16, -47.69)
CIE-LCHlch(18.91, 59.85, 307.17°)
OKLaboklab(31.71% 0.0438 -0.1372)
OKLCHoklch(31.71% 0.144 287.7)
XYZxyz(4.9446, 2.7267, 17.0919)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A75 #5C751A
analogous
#1A2E75 #331A75 #601A75
triadic
#331A75 #75331A #1A7533
tetradic
#331A75 #751A2E #5C751A #1A7560
square
#331A75 #751A2E #5C751A #1A7560
split-complementary
#331A75 #75601A #2E751A
monochromatic
#0B0619 #1D0F43 #331A75 #4925A7 #6237D3

Accessibility & contrast

On white

13.59
#331A75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#331A75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A75
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A75#FFFFFF#000000##FFFFFF
##331A751.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003078
Deuteranopia (green-blind)
#002B73
Tritanopia (blue-blind)
#183346
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #331a75;
/* rgb */ color: rgb(51, 26, 117);
/* oklch */ color: oklch(31.7% 0.144 287.7);
Tailwind
colors: {
  custom: {
    50: '#73599e',
    500: '#331a75',
    950: '#000000',
  },
}
SCSS
$custom: #331a75;
$custom-light: #73599e;
$custom-dark: #000000;
JSON
{
  "hex": "#331a75",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 117
  },
  "hsl": {
    "h": 256.484,
    "s": 63.636,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31711,
    "c": 0.144,
    "h": 287.7
  },
  "luminance": 0.02727
}

Semantic roles & 50–950 ramp

primary
#331A75
secondary
#8DAA41
accent
#E741B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #331A75

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

Preview Lab → · Contrast checker → · Palette generator →

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