#311461#311461

#311461 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.126 H 294.1°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#311461
RGBrgb(49, 20, 97)
HSLhsl(263, 66%, 23%)
HSVhsv(263, 79%, 38%)
CMYKcmyk(49.5%, 79.4%, 0%, 62%)
CIE-LABlab(15.57, 32.97, -40.11)
CIE-LCHlch(15.57, 51.92, 309.42°)
OKLaboklab(28.7% 0.0515 -0.115)
OKLCHoklch(28.7% 0.126 294.1)
XYZxyz(3.6739, 2.0162, 11.5025)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311461 #446114
analogous
#141E61 #311461 #571461
triadic
#311461 #613114 #146131
tetradic
#311461 #61141E #446114 #146157
square
#311461 #61141E #446114 #146157
split-complementary
#311461 #615714 #1E6114
monochromatic
#0D0519 #170A2E #311461 #4B1E94 #6429C6

Accessibility & contrast

On white

14.97
#311461 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311461
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311461#FFFFFF#000000##FFFFFF
##3114611.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#002660
Tritanopia (blue-blind)
#232939
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #311461;
/* rgb */ color: rgb(49, 20, 97);
/* oklch */ color: oklch(28.7% 0.126 294.1);
Tailwind
colors: {
  custom: {
    50: '#6f558f',
    500: '#311461',
    950: '#000000',
  },
}
SCSS
$custom: #311461;
$custom-light: #6f558f;
$custom-dark: #000000;
JSON
{
  "hex": "#311461",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 97
  },
  "hsl": {
    "h": 262.597,
    "s": 65.812,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28698,
    "c": 0.12598,
    "h": 294.1
  },
  "luminance": 0.02016
}

Semantic roles & 50–950 ramp

primary
#311461
secondary
#749838
accent
#E93FA9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #311461

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

Preview Lab → · Contrast checker → · Palette generator →

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