#311175#311175

#311175 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.4% C 0.153 H 287.9°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#311175
RGBrgb(49, 17, 117)
HSLhsl(259, 75%, 26%)
HSVhsv(259, 85%, 46%)
CMYKcmyk(58.1%, 85.5%, 0%, 54.1%)
CIE-LABlab(17.17, 40.25, -50.57)
CIE-LCHlch(17.17, 64.63, 308.52°)
OKLaboklab(30.44% 0.0472 -0.1456)
OKLCHoklch(30.44% 0.153 287.9)
XYZxyz(4.6770, 2.3380, 17.0310)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311175 #557511
analogous
#112375 #311175 #631175
triadic
#311175 #753111 #117531
tetradic
#311175 #751123 #557511 #117563
square
#311175 #751123 #557511 #117563
split-complementary
#311175 #756311 #237511
monochromatic
#0B041B #1B0940 #311175 #4719AA #5E22DF

Accessibility & contrast

On white

14.31
#311175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#311175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311175
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311175#FFFFFF#000000##FFFFFF
##3111751.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002873
Tritanopia (blue-blind)
#133044
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #311175;
/* rgb */ color: rgb(49, 17, 117);
/* oklch */ color: oklch(30.4% 0.153 287.9);
Tailwind
colors: {
  custom: {
    50: '#73559e',
    500: '#311175',
    950: '#000000',
  },
}
SCSS
$custom: #311175;
$custom-light: #73559e;
$custom-dark: #000000;
JSON
{
  "hex": "#311175",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 117
  },
  "hsl": {
    "h": 259.2,
    "s": 74.627,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30442,
    "c": 0.15302,
    "h": 287.9
  },
  "luminance": 0.02338
}

Semantic roles & 50–950 ramp

primary
#311175
secondary
#86AC36
accent
#F137B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311175

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

Preview Lab → · Contrast checker → · Palette generator →

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