#311250#311250

#311250 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.107 H 302.5°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#311250
RGBrgb(49, 18, 80)
HSLhsl(270, 63%, 19%)
HSVhsv(270, 78%, 31%)
CMYKcmyk(38.8%, 77.5%, 0%, 68.6%)
CIE-LABlab(13.62, 29.12, -31.83)
CIE-LCHlch(13.62, 43.14, 312.45°)
OKLaboklab(26.83% 0.0577 -0.0907)
OKLCHoklch(26.83% 0.107 302.5)
XYZxyz(2.9306, 1.6648, 7.7548)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311250 #315012
analogous
#121250 #311250 #501250
triadic
#311250 #503112 #125031
tetradic
#311250 #501212 #315012 #125050
square
#311250 #501212 #315012 #125050
split-complementary
#311250 #505012 #125012
monochromatic
#0F0619 #12071E #311250 #501D82 #6E28B4

Accessibility & contrast

On white

15.75
#311250 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#311250 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311250
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311250#FFFFFF#000000##FFFFFF
##3112501.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002252
Deuteranopia (green-blind)
#00234F
Tritanopia (blue-blind)
#2B212F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #311250;
/* rgb */ color: rgb(49, 18, 80);
/* oklch */ color: oklch(26.8% 0.107 302.5);
Tailwind
colors: {
  custom: {
    50: '#6d5382',
    500: '#311250',
    950: '#000000',
  },
}
SCSS
$custom: #311250;
$custom-light: #6d5382;
$custom-dark: #000000;
JSON
{
  "hex": "#311250",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 80
  },
  "hsl": {
    "h": 270,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26827,
    "c": 0.10748,
    "h": 302.5
  },
  "luminance": 0.01665
}

Semantic roles & 50–950 ramp

primary
#311250
secondary
#5F8935
accent
#E64194
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #311250

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

Preview Lab → · Contrast checker → · Palette generator →

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