#311460#311460

#311460 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.125 H 294.5°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#311460
RGBrgb(49, 20, 96)
HSLhsl(263, 66%, 23%)
HSVhsv(263, 79%, 38%)
CMYKcmyk(49%, 79.2%, 0%, 62.4%)
CIE-LABlab(15.48, 32.67, -39.60)
CIE-LCHlch(15.48, 51.34, 309.52°)
OKLaboklab(28.6% 0.0518 -0.1135)
OKLCHoklch(28.6% 0.125 294.5)
XYZxyz(3.6275, 1.9977, 11.2585)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311460 #436014
analogous
#141D60 #311460 #571460
triadic
#311460 #603114 #146031
tetradic
#311460 #60141D #436014 #146057
square
#311460 #60141D #436014 #146057
split-complementary
#311460 #605714 #1D6014
monochromatic
#0D0519 #17092D #311460 #4B1F93 #6529C5

Accessibility & contrast

On white

15.00
#311460 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#311460 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311460
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311460#FFFFFF#000000##FFFFFF
##3114601.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002762
Deuteranopia (green-blind)
#00255F
Tritanopia (blue-blind)
#232839
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #311460;
/* rgb */ color: rgb(49, 20, 96);
/* oklch */ color: oklch(28.6% 0.125 294.5);
Tailwind
colors: {
  custom: {
    50: '#6f558e',
    500: '#311460',
    950: '#000000',
  },
}
SCSS
$custom: #311460;
$custom-light: #6f558e;
$custom-dark: #000000;
JSON
{
  "hex": "#311460",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 96
  },
  "hsl": {
    "h": 262.895,
    "s": 65.517,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28599,
    "c": 0.12475,
    "h": 294.5
  },
  "luminance": 0.01998
}

Semantic roles & 50–950 ramp

primary
#311460
secondary
#739838
accent
#E83FA8
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #311460

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

Preview Lab → · Contrast checker → · Palette generator →

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