#311A78#311A78

#311A78 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.148 H 285.6°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#311A78
RGBrgb(49, 26, 120)
HSLhsl(255, 64%, 29%)
HSVhsv(255, 78%, 47%)
CMYKcmyk(59.2%, 78.3%, 0%, 52.9%)
CIE-LABlab(19.00, 36.79, -49.48)
CIE-LCHlch(19.00, 61.66, 306.63°)
OKLaboklab(31.81% 0.0398 -0.1425)
OKLCHoklch(31.81% 0.148 285.6)
XYZxyz(5.0252, 2.7475, 18.0312)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A78 #61781A
analogous
#1A3278 #311A78 #601A78
triadic
#311A78 #78311A #1A7831
tetradic
#311A78 #781A32 #61781A #1A7860
square
#311A78 #781A32 #61781A #1A7860
split-complementary
#311A78 #78601A #32781A
monochromatic
#0A0519 #1C0F46 #311A78 #4625AA #5E38D4

Accessibility & contrast

On white

13.55
#311A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#311A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A78
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A78#FFFFFF#000000##FFFFFF
##311A781.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#0D3448
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #311a78;
/* rgb */ color: rgb(49, 26, 120);
/* oklch */ color: oklch(31.8% 0.148 285.6);
Tailwind
colors: {
  custom: {
    50: '#7259a0',
    500: '#311a78',
    950: '#000000',
  },
}
SCSS
$custom: #311a78;
$custom-light: #7259a0;
$custom-dark: #000000;
JSON
{
  "hex": "#311a78",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 254.681,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31814,
    "c": 0.14793,
    "h": 285.6
  },
  "luminance": 0.02748
}

Semantic roles & 50–950 ramp

primary
#311A78
secondary
#92AC41
accent
#E740BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #311A78

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

Preview Lab → · Contrast checker → · Palette generator →

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