#311065#311065

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

Color values

HEX#311065
RGBrgb(49, 16, 101)
HSLhsl(263, 73%, 23%)
HSVhsv(263, 84%, 40%)
CMYKcmyk(51.5%, 84.2%, 0%, 60.4%)
CIE-LABlab(15.29, 36.09, -43.22)
CIE-LCHlch(15.29, 56.31, 309.87°)
OKLaboklab(28.63% 0.0537 -0.1241)
OKLCHoklch(28.63% 0.135 293.4)
XYZxyz(3.8002, 1.9630, 12.4881)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311065 #446510
analogous
#101965 #311065 #5B1065
triadic
#311065 #653110 #106531
tetradic
#311065 #651019 #446510 #10655B
square
#311065 #651019 #446510 #10655B
split-complementary
#311065 #655B10 #196510
monochromatic
#0D041A #170830 #311065 #4B189A #6421CF

Accessibility & contrast

On white

15.08
#311065 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311065
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311065#FFFFFF#000000##FFFFFF
##3110651.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002767
Deuteranopia (green-blind)
#002563
Tritanopia (blue-blind)
#21283B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #311065;
/* rgb */ color: rgb(49, 16, 101);
/* oklch */ color: oklch(28.6% 0.135 293.4);
Tailwind
colors: {
  custom: {
    50: '#705392',
    500: '#311065',
    950: '#000000',
  },
}
SCSS
$custom: #311065;
$custom-light: #705392;
$custom-dark: #000000;
JSON
{
  "hex": "#311065",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 101
  },
  "hsl": {
    "h": 263.294,
    "s": 72.65,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28625,
    "c": 0.1352,
    "h": 293.4
  },
  "luminance": 0.01963
}

Semantic roles & 50–950 ramp

primary
#311065
secondary
#749D33
accent
#EF38A8
background
#F7F4F9
surface
#EDE7F1
border
#C8C3CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311065

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

Preview Lab → · Contrast checker → · Palette generator →

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