#311265#311265

#311265 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.133 H 293.0°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#311265
RGBrgb(49, 18, 101)
HSLhsl(262, 70%, 23%)
HSVhsv(262, 82%, 40%)
CMYKcmyk(51.5%, 82.2%, 0%, 60.4%)
CIE-LABlab(15.62, 35.15, -42.69)
CIE-LCHlch(15.62, 55.30, 309.47°)
OKLaboklab(28.85% 0.0521 -0.1225)
OKLCHoklch(28.85% 0.133 293)
XYZxyz(3.8312, 2.0250, 12.4984)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311265 #466512
analogous
#121C65 #311265 #5A1265
triadic
#311265 #653112 #126531
tetradic
#311265 #65121C #466512 #12655A
square
#311265 #65121C #466512 #12655A
split-complementary
#311265 #655A12 #1C6512
monochromatic
#0D051A #180931 #311265 #4A1B99 #6325CD

Accessibility & contrast

On white

14.95
#311265 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#311265 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311265
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311265#FFFFFF#000000##FFFFFF
##3112651.0014.951.4114.95
#FFFFFF14.951.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311265;
/* rgb */ color: rgb(49, 18, 101);
/* oklch */ color: oklch(28.9% 0.133 293.0);
Tailwind
colors: {
  custom: {
    50: '#705492',
    500: '#311265',
    950: '#000000',
  },
}
SCSS
$custom: #311265;
$custom-light: #705492;
$custom-dark: #000000;
JSON
{
  "hex": "#311265",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 101
  },
  "hsl": {
    "h": 262.41,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28852,
    "c": 0.13314,
    "h": 293
  },
  "luminance": 0.02025
}

Semantic roles & 50–950 ramp

primary
#311265
secondary
#769D36
accent
#ED3BAA
background
#F7F5F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311265

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

Preview Lab → · Contrast checker → · Palette generator →

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