#311465#311465

#311465 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.131 H 292.6°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#311465
RGBrgb(49, 20, 101)
HSLhsl(261, 67%, 24%)
HSVhsv(261, 80%, 40%)
CMYKcmyk(51.5%, 80.2%, 0%, 60.4%)
CIE-LABlab(15.97, 34.15, -42.11)
CIE-LCHlch(15.97, 54.22, 309.04°)
OKLaboklab(29.1% 0.0504 -0.1209)
OKLCHoklch(29.1% 0.131 292.6)
XYZxyz(3.8651, 2.0927, 12.5097)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311465 #486514
analogous
#142065 #311465 #591465
triadic
#311465 #653114 #146531
tetradic
#311465 #651420 #486514 #146559
square
#311465 #651420 #486514 #146559
split-complementary
#311465 #655914 #206514
monochromatic
#0C051A #180A32 #311465 #4A1E98 #6328CB

Accessibility & contrast

On white

14.80
#311465 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#311465 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311465
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311465#FFFFFF#000000##FFFFFF
##3114651.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002663
Tritanopia (blue-blind)
#202A3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #311465;
/* rgb */ color: rgb(49, 20, 101);
/* oklch */ color: oklch(29.1% 0.131 292.6);
Tailwind
colors: {
  custom: {
    50: '#6f5592',
    500: '#311465',
    950: '#000000',
  },
}
SCSS
$custom: #311465;
$custom-light: #6f5592;
$custom-dark: #000000;
JSON
{
  "hex": "#311465",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 101
  },
  "hsl": {
    "h": 261.481,
    "s": 66.942,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29096,
    "c": 0.13093,
    "h": 292.6
  },
  "luminance": 0.02093
}

Semantic roles & 50–950 ramp

primary
#311465
secondary
#799C39
accent
#EA3EAC
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311465

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

Preview Lab → · Contrast checker → · Palette generator →

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