#311979#311979

#311979 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.150 H 285.5°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#311979
RGBrgb(49, 25, 121)
HSLhsl(255, 66%, 29%)
HSVhsv(255, 79%, 47%)
CMYKcmyk(59.5%, 79.3%, 0%, 52.5%)
CIE-LABlab(18.92, 37.62, -50.25)
CIE-LCHlch(18.92, 62.78, 306.82°)
OKLaboklab(31.79% 0.0403 -0.1447)
OKLCHoklch(31.79% 0.15 285.5)
XYZxyz(5.0644, 2.7284, 18.3452)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311979 #617919
analogous
#193179 #311979 #611979
triadic
#311979 #793119 #197931
tetradic
#311979 #791931 #617919 #197961
square
#311979 #791931 #617919 #197961
split-complementary
#311979 #796119 #317919
monochromatic
#0A0519 #1C0F46 #311979 #4623AC #5E37D6

Accessibility & contrast

On white

13.59
#311979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#311979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311979
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311979#FFFFFF#000000##FFFFFF
##3119791.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#0C3448
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #311979;
/* rgb */ color: rgb(49, 25, 121);
/* oklch */ color: oklch(31.8% 0.150 285.5);
Tailwind
colors: {
  custom: {
    50: '#7359a1',
    500: '#311979',
    950: '#000000',
  },
}
SCSS
$custom: #311979;
$custom-light: #7359a1;
$custom-dark: #000000;
JSON
{
  "hex": "#311979",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 255,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31789,
    "c": 0.15023,
    "h": 285.5
  },
  "luminance": 0.02729
}

Semantic roles & 50–950 ramp

primary
#311979
secondary
#92AE40
accent
#E93FBE
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #311979

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

Preview Lab → · Contrast checker → · Palette generator →

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