#311059#311059

#311059 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.4% C 0.121 H 298.5°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#311059
RGBrgb(49, 16, 89)
HSLhsl(267, 70%, 21%)
HSVhsv(267, 82%, 35%)
CMYKcmyk(44.9%, 82%, 0%, 65.1%)
CIE-LABlab(14.09, 32.68, -37.19)
CIE-LCHlch(14.09, 49.51, 311.31°)
OKLaboklab(27.42% 0.0576 -0.1064)
OKLCHoklch(27.42% 0.121 298.5)
XYZxyz(3.2546, 1.7448, 9.6146)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311059 #385910
analogous
#101459 #311059 #551059
triadic
#311059 #593110 #105931
tetradic
#311059 #591014 #385910 #105955
square
#311059 #591014 #385910 #105955
split-complementary
#311059 #595510 #145910
monochromatic
#0E051A #140725 #311059 #4E198D #6A23C1

Accessibility & contrast

On white

15.57
#311059 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#311059 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311059
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311059#FFFFFF#000000##FFFFFF
##3110591.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245B
Deuteranopia (green-blind)
#002358
Tritanopia (blue-blind)
#272334
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #311059;
/* rgb */ color: rgb(49, 16, 89);
/* oklch */ color: oklch(27.4% 0.121 298.5);
Tailwind
colors: {
  custom: {
    50: '#6e5289',
    500: '#311059',
    950: '#000000',
  },
}
SCSS
$custom: #311059;
$custom-light: #6e5289;
$custom-dark: #000000;
JSON
{
  "hex": "#311059",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 89
  },
  "hsl": {
    "h": 267.123,
    "s": 69.524,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27415,
    "c": 0.12098,
    "h": 298.5
  },
  "luminance": 0.01745
}

Semantic roles & 50–950 ramp

primary
#311059
secondary
#679233
accent
#EC3B9C
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020B
muted
#7B787C

Preview Lab

Preview with #311059

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

Preview Lab → · Contrast checker → · Palette generator →

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