#311075#311075

#311075 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.154 H 288.1°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#311075
RGBrgb(49, 16, 117)
HSLhsl(260, 76%, 26%)
HSVhsv(260, 86%, 46%)
CMYKcmyk(58.1%, 86.3%, 0%, 54.1%)
CIE-LABlab(17.03, 40.67, -50.81)
CIE-LCHlch(17.03, 65.08, 308.68°)
OKLaboklab(30.34% 0.0478 -0.1462)
OKLCHoklch(30.34% 0.154 288.1)
XYZxyz(4.6618, 2.3077, 17.0259)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311075 #547510
analogous
#102175 #311075 #631075
triadic
#311075 #753110 #107531
tetradic
#311075 #751021 #547510 #107563
square
#311075 #751021 #547510 #107563
split-complementary
#311075 #756310 #217510
monochromatic
#0B041B #1A093F #311075 #4817AB #5E1FE0

Accessibility & contrast

On white

14.37
#311075 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#311075 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311075
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311075#FFFFFF#000000##FFFFFF
##3110751.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002773
Tritanopia (blue-blind)
#132F44
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #311075;
/* rgb */ color: rgb(49, 16, 117);
/* oklch */ color: oklch(30.3% 0.154 288.1);
Tailwind
colors: {
  custom: {
    50: '#73549e',
    500: '#311075',
    950: '#000000',
  },
}
SCSS
$custom: #311075;
$custom-light: #73549e;
$custom-dark: #000000;
JSON
{
  "hex": "#311075",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 117
  },
  "hsl": {
    "h": 259.604,
    "s": 75.94,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30343,
    "c": 0.15385,
    "h": 288.1
  },
  "luminance": 0.02308
}

Semantic roles & 50–950 ramp

primary
#311075
secondary
#85AC35
accent
#F335B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311075

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

Preview Lab → · Contrast checker → · Palette generator →

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