#311064#311064

#311064 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.5% C 0.134 H 293.8°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#311064
RGBrgb(49, 16, 100)
HSLhsl(264, 72%, 23%)
HSVhsv(264, 84%, 39%)
CMYKcmyk(51%, 84%, 0%, 60.8%)
CIE-LABlab(15.19, 35.81, -42.73)
CIE-LCHlch(15.19, 55.75, 309.96°)
OKLaboklab(28.52% 0.0541 -0.1226)
OKLCHoklch(28.52% 0.134 293.8)
XYZxyz(3.7515, 1.9435, 12.2316)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311064 #436410
analogous
#101964 #311064 #5B1064
triadic
#311064 #643110 #106431
tetradic
#311064 #641019 #436410 #10645B
square
#311064 #641019 #436410 #10645B
split-complementary
#311064 #645B10 #196410
monochromatic
#0D041A #17082F #311064 #4B1899 #6521CE

Accessibility & contrast

On white

15.12
#311064 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#311064 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311064
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311064#FFFFFF#000000##FFFFFF
##3110641.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002766
Deuteranopia (green-blind)
#002562
Tritanopia (blue-blind)
#21283A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #311064;
/* rgb */ color: rgb(49, 16, 100);
/* oklch */ color: oklch(28.5% 0.134 293.8);
Tailwind
colors: {
  custom: {
    50: '#705391',
    500: '#311064',
    950: '#000000',
  },
}
SCSS
$custom: #311064;
$custom-light: #705391;
$custom-dark: #000000;
JSON
{
  "hex": "#311064",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 100
  },
  "hsl": {
    "h": 263.571,
    "s": 72.414,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28521,
    "c": 0.13403,
    "h": 293.8
  },
  "luminance": 0.01944
}

Semantic roles & 50–950 ramp

primary
#311064
secondary
#739D33
accent
#EF39A7
background
#F7F4F9
surface
#EDE7F1
border
#C8C3CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311064

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

Preview Lab → · Contrast checker → · Palette generator →

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