#311A76#311A76

#311A76 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.145 H 286.1°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#311A76
RGBrgb(49, 26, 118)
HSLhsl(255, 64%, 28%)
HSVhsv(255, 78%, 46%)
CMYKcmyk(58.5%, 78%, 0%, 53.7%)
CIE-LABlab(18.80, 36.16, -48.53)
CIE-LCHlch(18.80, 60.52, 306.69°)
OKLaboklab(31.61% 0.0403 -0.1397)
OKLCHoklch(31.61% 0.145 286.1)
XYZxyz(4.9050, 2.6995, 17.3986)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A76 #5F761A
analogous
#1A3176 #311A76 #5F1A76
triadic
#311A76 #76311A #1A7631
tetradic
#311A76 #761A31 #5F761A #1A765F
square
#311A76 #761A31 #5F761A #1A765F
split-complementary
#311A76 #765F1A #31761A
monochromatic
#0A0619 #1C0F44 #311A76 #4625A8 #5E37D3

Accessibility & contrast

On white

13.64
#311A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#311A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A76
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A76#FFFFFF#000000##FFFFFF
##311A761.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002B74
Tritanopia (blue-blind)
#103447
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #311a76;
/* rgb */ color: rgb(49, 26, 118);
/* oklch */ color: oklch(31.6% 0.145 286.1);
Tailwind
colors: {
  custom: {
    50: '#72599e',
    500: '#311a76',
    950: '#000000',
  },
}
SCSS
$custom: #311a76;
$custom-light: #72599e;
$custom-dark: #000000;
JSON
{
  "hex": "#311a76",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 118
  },
  "hsl": {
    "h": 255,
    "s": 63.889,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31608,
    "c": 0.14542,
    "h": 286.1
  },
  "luminance": 0.027
}

Semantic roles & 50–950 ramp

primary
#311A76
secondary
#90AB41
accent
#E741BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #311A76

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

Preview Lab → · Contrast checker → · Palette generator →

#311A76 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva