#311574#311574

#311574 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.148 H 287.6°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#311574
RGBrgb(49, 21, 116)
HSLhsl(258, 69%, 27%)
HSVhsv(258, 82%, 45%)
CMYKcmyk(57.8%, 81.9%, 0%, 54.5%)
CIE-LABlab(17.69, 38.12, -49.07)
CIE-LCHlch(17.69, 62.14, 307.85°)
OKLaboklab(30.77% 0.0448 -0.1412)
OKLCHoklch(30.77% 0.148 287.6)
XYZxyz(4.6862, 2.4500, 16.7456)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311574 #587415
analogous
#152974 #311574 #611574
triadic
#311574 #743115 #157431
tetradic
#311574 #741529 #587415 #157461
square
#311574 #741529 #587415 #157461
split-complementary
#311574 #746115 #297415
monochromatic
#0B051A #1B0C40 #311574 #471EA8 #5E2BD9

Accessibility & contrast

On white

14.09
#311574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311574
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311574#FFFFFF#000000##FFFFFF
##3115741.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#143144
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311574;
/* rgb */ color: rgb(49, 21, 116);
/* oklch */ color: oklch(30.8% 0.148 287.6);
Tailwind
colors: {
  custom: {
    50: '#72569d',
    500: '#311574',
    950: '#000000',
  },
}
SCSS
$custom: #311574;
$custom-light: #72569d;
$custom-dark: #000000;
JSON
{
  "hex": "#311574",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 257.684,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3077,
    "c": 0.14815,
    "h": 287.6
  },
  "luminance": 0.0245
}

Semantic roles & 50–950 ramp

primary
#311574
secondary
#89AA3B
accent
#EC3CB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311574

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

Preview Lab → · Contrast checker → · Palette generator →

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