#310F55#310F55

#310F55 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.117 H 300.6°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#310F55
RGBrgb(49, 15, 85)
HSLhsl(269, 70%, 20%)
HSVhsv(269, 82%, 33%)
CMYKcmyk(42.4%, 82.4%, 0%, 66.7%)
CIE-LABlab(13.53, 32.05, -35.38)
CIE-LCHlch(13.53, 47.74, 312.17°)
OKLaboklab(26.91% 0.0598 -0.1011)
OKLCHoklch(26.91% 0.117 300.6)
XYZxyz(3.0767, 1.6505, 8.7490)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F55 #33550F
analogous
#0F1055 #310F55 #540F55
triadic
#310F55 #55310F #0F5531
tetradic
#310F55 #550F10 #33550F #0F5554
square
#310F55 #550F10 #33550F #0F5554
split-complementary
#310F55 #55540F #10550F
monochromatic
#0F051A #130621 #310F55 #4F1889 #6D21BD

Accessibility & contrast

On white

15.79
#310F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#310F55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F55
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F55#FFFFFF#000000##FFFFFF
##310F551.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002257
Deuteranopia (green-blind)
#002254
Tritanopia (blue-blind)
#292131
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #310f55;
/* rgb */ color: rgb(49, 15, 85);
/* oklch */ color: oklch(26.9% 0.117 300.6);
Tailwind
colors: {
  custom: {
    50: '#6d5186',
    500: '#310f55',
    950: '#000000',
  },
}
SCSS
$custom: #310f55;
$custom-light: #6d5186;
$custom-dark: #000000;
JSON
{
  "hex": "#310f55",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 85
  },
  "hsl": {
    "h": 269.143,
    "s": 70,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26909,
    "c": 0.11741,
    "h": 300.6
  },
  "luminance": 0.0165
}

Semantic roles & 50–950 ramp

primary
#310F55
secondary
#618F31
accent
#ED3B96
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #310F55

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

Preview Lab → · Contrast checker → · Palette generator →

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