#311264#311264

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

Color values

HEX#311264
RGBrgb(49, 18, 100)
HSLhsl(263, 69%, 23%)
HSVhsv(263, 82%, 39%)
CMYKcmyk(51%, 82%, 0%, 60.8%)
CIE-LABlab(15.52, 34.86, -42.19)
CIE-LCHlch(15.52, 54.73, 309.56°)
OKLaboklab(28.75% 0.0524 -0.1211)
OKLCHoklch(28.75% 0.132 293.4)
XYZxyz(3.7825, 2.0056, 12.2419)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311264 #456412
analogous
#121C64 #311264 #5A1264
triadic
#311264 #643112 #126431
tetradic
#311264 #64121C #456412 #12645A
square
#311264 #64121C #456412 #12645A
split-complementary
#311264 #645A12 #1C6412
monochromatic
#0D051A #180930 #311264 #4A1B98 #6425CC

Accessibility & contrast

On white

14.99
#311264 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311264
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311264#FFFFFF#000000##FFFFFF
##3112641.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002866
Deuteranopia (green-blind)
#002562
Tritanopia (blue-blind)
#21293B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #311264;
/* rgb */ color: rgb(49, 18, 100);
/* oklch */ color: oklch(28.7% 0.132 293.4);
Tailwind
colors: {
  custom: {
    50: '#6f5491',
    500: '#311264',
    950: '#000000',
  },
}
SCSS
$custom: #311264;
$custom-light: #6f5491;
$custom-dark: #000000;
JSON
{
  "hex": "#311264",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 100
  },
  "hsl": {
    "h": 262.683,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.2875,
    "c": 0.13193,
    "h": 293.4
  },
  "luminance": 0.02006
}

Semantic roles & 50–950 ramp

primary
#311264
secondary
#759C36
accent
#EC3BA9
background
#F7F5F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311264

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

Preview Lab → · Contrast checker → · Palette generator →

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