#311475#311475

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

Color values

HEX#311475
RGBrgb(49, 20, 117)
HSLhsl(258, 71%, 27%)
HSVhsv(258, 83%, 46%)
CMYKcmyk(58.1%, 82.9%, 0%, 54.1%)
CIE-LABlab(17.63, 38.90, -49.81)
CIE-LCHlch(17.63, 63.20, 307.99°)
OKLaboklab(30.76% 0.0452 -0.1434)
OKLCHoklch(30.76% 0.15 287.5)
XYZxyz(4.7267, 2.4374, 17.0476)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311475 #587514
analogous
#142875 #311475 #621475
triadic
#311475 #753114 #147531
tetradic
#311475 #751428 #587514 #147562
square
#311475 #751428 #587514 #147562
split-complementary
#311475 #756214 #287514
monochromatic
#0B041A #1B0B41 #311475 #471DA9 #5E29DA

Accessibility & contrast

On white

14.12
#311475 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311475
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311475#FFFFFF#000000##FFFFFF
##3114751.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311475;
/* rgb */ color: rgb(49, 20, 117);
/* oklch */ color: oklch(30.8% 0.150 287.5);
Tailwind
colors: {
  custom: {
    50: '#72569e',
    500: '#311475',
    950: '#000000',
  },
}
SCSS
$custom: #311475;
$custom-light: #72569e;
$custom-dark: #000000;
JSON
{
  "hex": "#311475",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 117
  },
  "hsl": {
    "h": 257.938,
    "s": 70.803,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30762,
    "c": 0.15032,
    "h": 287.5
  },
  "luminance": 0.02438
}

Semantic roles & 50–950 ramp

primary
#311475
secondary
#89AB3A
accent
#EE3AB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311475

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

Preview Lab → · Contrast checker → · Palette generator →

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