#311374#311374

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

Color values

HEX#311374
RGBrgb(49, 19, 116)
HSLhsl(259, 72%, 26%)
HSVhsv(259, 84%, 45%)
CMYKcmyk(57.8%, 83.6%, 0%, 54.5%)
CIE-LABlab(17.36, 39.07, -49.60)
CIE-LCHlch(17.36, 63.14, 308.23°)
OKLaboklab(30.54% 0.0462 -0.1428)
OKLCHoklch(30.54% 0.15 287.9)
XYZxyz(4.6509, 2.3794, 16.7338)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311374 #567413
analogous
#132674 #311374 #621374
triadic
#311374 #743113 #137431
tetradic
#311374 #741326 #567413 #137462
square
#311374 #741326 #567413 #137462
split-complementary
#311374 #746213 #267413
monochromatic
#0B041A #1B0A3F #311374 #471CA9 #5E26DB

Accessibility & contrast

On white

14.23
#311374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311374
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311374#FFFFFF#000000##FFFFFF
##3113741.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#143044
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311374;
/* rgb */ color: rgb(49, 19, 116);
/* oklch */ color: oklch(30.5% 0.150 287.9);
Tailwind
colors: {
  custom: {
    50: '#72559d',
    500: '#311374',
    950: '#000000',
  },
}
SCSS
$custom: #311374;
$custom-light: #72559d;
$custom-dark: #000000;
JSON
{
  "hex": "#311374",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 116
  },
  "hsl": {
    "h": 258.557,
    "s": 71.852,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30544,
    "c": 0.15006,
    "h": 287.9
  },
  "luminance": 0.0238
}

Semantic roles & 50–950 ramp

primary
#311374
secondary
#87AA38
accent
#EF39B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311374

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

Preview Lab → · Contrast checker → · Palette generator →

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