#310F50#310F50

#310F50 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.111 H 303.2°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#310F50
RGBrgb(49, 15, 80)
HSLhsl(271, 68%, 19%)
HSVhsv(271, 81%, 31%)
CMYKcmyk(38.8%, 81.3%, 0%, 68.6%)
CIE-LABlab(13.07, 30.67, -32.73)
CIE-LCHlch(13.07, 44.85, 313.14°)
OKLaboklab(26.44% 0.0611 -0.0933)
OKLCHoklch(26.44% 0.111 303.2)
XYZxyz(2.8851, 1.5738, 7.7396)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F50 #2E500F
analogous
#110F50 #310F50 #500F4E
triadic
#310F50 #50310F #0F5031
tetradic
#310F50 #50110F #2E500F #0F4E50
square
#310F50 #50110F #2E500F #0F4E50
split-complementary
#310F50 #4E500F #0F5011
monochromatic
#10051A #11051C #310F50 #511984 #7022B7

Accessibility & contrast

On white

15.97
#310F50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#310F50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F50
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F50#FFFFFF#000000##FFFFFF
##310F501.0015.971.3115.97
#FFFFFF15.971.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002152
Deuteranopia (green-blind)
#00224F
Tritanopia (blue-blind)
#2B1F2E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #310f50;
/* rgb */ color: rgb(49, 15, 80);
/* oklch */ color: oklch(26.4% 0.111 303.2);
Tailwind
colors: {
  custom: {
    50: '#6d5182',
    500: '#310f50',
    950: '#000000',
  },
}
SCSS
$custom: #310f50;
$custom-light: #6d5182;
$custom-dark: #000000;
JSON
{
  "hex": "#310f50",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 80
  },
  "hsl": {
    "h": 271.385,
    "s": 68.421,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26438,
    "c": 0.11149,
    "h": 303.2
  },
  "luminance": 0.01574
}

Semantic roles & 50–950 ramp

primary
#310F50
secondary
#5B8A31
accent
#EB3D90
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310F50

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

Preview Lab → · Contrast checker → · Palette generator →

#310F50 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva