#311375#311375

#311375 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.151 H 287.6°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#311375
RGBrgb(49, 19, 117)
HSLhsl(258, 72%, 27%)
HSVhsv(258, 84%, 46%)
CMYKcmyk(58.1%, 83.8%, 0%, 54.1%)
CIE-LABlab(17.47, 39.36, -50.07)
CIE-LCHlch(17.47, 63.69, 308.17°)
OKLaboklab(30.65% 0.0459 -0.1441)
OKLCHoklch(30.65% 0.151 287.6)
XYZxyz(4.7094, 2.4028, 17.0418)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311375 #577513
analogous
#132675 #311375 #621375
triadic
#311375 #753113 #137531
tetradic
#311375 #751326 #577513 #137562
square
#311375 #751326 #577513 #137562
split-complementary
#311375 #756213 #267513
monochromatic
#0B041A #1B0A40 #311375 #471CAA #5E27DC

Accessibility & contrast

On white

14.18
#311375 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#311375 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311375
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311375#FFFFFF#000000##FFFFFF
##3113751.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D78
Deuteranopia (green-blind)
#002873
Tritanopia (blue-blind)
#123045
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311375;
/* rgb */ color: rgb(49, 19, 117);
/* oklch */ color: oklch(30.7% 0.151 287.6);
Tailwind
colors: {
  custom: {
    50: '#72569e',
    500: '#311375',
    950: '#000000',
  },
}
SCSS
$custom: #311375;
$custom-light: #72569e;
$custom-dark: #000000;
JSON
{
  "hex": "#311375",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 117
  },
  "hsl": {
    "h": 258.367,
    "s": 72.059,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30652,
    "c": 0.15125,
    "h": 287.6
  },
  "luminance": 0.02403
}

Semantic roles & 50–950 ramp

primary
#311375
secondary
#88AB38
accent
#EF39B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311375

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

Preview Lab → · Contrast checker → · Palette generator →

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