#311276#311276

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

Color values

HEX#311276
RGBrgb(49, 18, 118)
HSLhsl(259, 74%, 27%)
HSVhsv(259, 85%, 46%)
CMYKcmyk(58.5%, 84.7%, 0%, 53.7%)
CIE-LABlab(17.43, 40.11, -50.79)
CIE-LCHlch(17.43, 64.71, 308.30°)
OKLaboklab(30.65% 0.0461 -0.1462)
OKLCHoklch(30.65% 0.153 287.5)
XYZxyz(4.7520, 2.3933, 17.3476)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311276 #577612
analogous
#122576 #311276 #631276
triadic
#311276 #763112 #127631
tetradic
#311276 #761225 #577612 #127663
square
#311276 #761225 #577612 #127663
split-complementary
#311276 #766312 #257612
monochromatic
#0B041B #1B0A41 #311276 #471AAB #5E25DE

Accessibility & contrast

On white

14.20
#311276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311276
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311276#FFFFFF#000000##FFFFFF
##3112761.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#113045
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311276;
/* rgb */ color: rgb(49, 18, 118);
/* oklch */ color: oklch(30.7% 0.153 287.5);
Tailwind
colors: {
  custom: {
    50: '#73559f',
    500: '#311276',
    950: '#000000',
  },
}
SCSS
$custom: #311276;
$custom-light: #73559f;
$custom-dark: #000000;
JSON
{
  "hex": "#311276",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 258.6,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30654,
    "c": 0.15332,
    "h": 287.5
  },
  "luminance": 0.02394
}

Semantic roles & 50–950 ramp

primary
#311276
secondary
#88AD37
accent
#F038B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #311276

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

Preview Lab → · Contrast checker → · Palette generator →

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