#312175#312175

#312175 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.136 H 284.7°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#312175
RGBrgb(49, 33, 117)
HSLhsl(251, 56%, 29%)
HSVhsv(251, 72%, 46%)
CMYKcmyk(58.1%, 71.8%, 0%, 54.1%)
CIE-LABlab(20.14, 31.81, -45.69)
CIE-LCHlch(20.14, 55.67, 304.85°)
OKLaboklab(32.53% 0.0344 -0.1314)
OKLCHoklch(32.53% 0.136 284.7)
XYZxyz(5.0204, 3.0247, 17.1455)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312175 #657521
analogous
#213B75 #312175 #5B2175
triadic
#312175 #753121 #217531
tetradic
#312175 #75213B #657521 #21755B
square
#312175 #75213B #657521 #21755B
split-complementary
#312175 #755B21 #3B7521
monochromatic
#0A0718 #1D1445 #312175 #452EA5 #5F46CB

Accessibility & contrast

On white

13.08
#312175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#312175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312175
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312175#FFFFFF#000000##FFFFFF
##3121751.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003378
Deuteranopia (green-blind)
#002E73
Tritanopia (blue-blind)
#113748
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #312175;
/* rgb */ color: rgb(49, 33, 117);
/* oklch */ color: oklch(32.5% 0.136 284.7);
Tailwind
colors: {
  custom: {
    50: '#715e9e',
    500: '#312175',
    950: '#000000',
  },
}
SCSS
$custom: #312175;
$custom-light: #715e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#312175",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 117
  },
  "hsl": {
    "h": 251.429,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32533,
    "c": 0.13584,
    "h": 284.7
  },
  "luminance": 0.03025
}

Semantic roles & 50–950 ramp

primary
#312175
secondary
#96A84A
accent
#DF49C3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #312175

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

Preview Lab → · Contrast checker → · Palette generator →

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