#311575#311575

#311575 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.149 H 287.3°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#311575
RGBrgb(49, 21, 117)
HSLhsl(258, 70%, 27%)
HSVhsv(258, 82%, 46%)
CMYKcmyk(58.1%, 82.1%, 0%, 54.1%)
CIE-LABlab(17.80, 38.42, -49.54)
CIE-LCHlch(17.80, 62.69, 307.80°)
OKLaboklab(30.88% 0.0445 -0.1426)
OKLCHoklch(30.88% 0.149 287.3)
XYZxyz(4.7447, 2.4734, 17.0536)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311575 #597515
analogous
#152975 #311575 #611575
triadic
#311575 #753115 #157531
tetradic
#311575 #751529 #597515 #157561
square
#311575 #751529 #597515 #157561
split-complementary
#311575 #756115 #297515
monochromatic
#0B051A #1B0C41 #311575 #471EA9 #5E2BD9

Accessibility & contrast

On white

14.05
#311575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#311575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311575
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311575#FFFFFF#000000##FFFFFF
##3115751.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311575;
/* rgb */ color: rgb(49, 21, 117);
/* oklch */ color: oklch(30.9% 0.149 287.3);
Tailwind
colors: {
  custom: {
    50: '#72579e',
    500: '#311575',
    950: '#000000',
  },
}
SCSS
$custom: #311575;
$custom-light: #72579e;
$custom-dark: #000000;
JSON
{
  "hex": "#311575",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 117
  },
  "hsl": {
    "h": 257.5,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30877,
    "c": 0.14936,
    "h": 287.3
  },
  "luminance": 0.02474
}

Semantic roles & 50–950 ramp

primary
#311575
secondary
#8AAB3B
accent
#EC3BB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311575

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

Preview Lab → · Contrast checker → · Palette generator →

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