#310F56#310F56

#310F56 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.119 H 300.1°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#310F56
RGBrgb(49, 15, 86)
HSLhsl(269, 70%, 20%)
HSVhsv(269, 83%, 34%)
CMYKcmyk(43%, 82.6%, 0%, 66.3%)
CIE-LABlab(13.63, 32.32, -35.91)
CIE-LCHlch(13.63, 48.31, 312.00°)
OKLaboklab(27.01% 0.0595 -0.1026)
OKLCHoklch(27.01% 0.119 300.1)
XYZxyz(3.1167, 1.6665, 8.9597)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F56 #34560F
analogous
#0F1156 #310F56 #540F56
triadic
#310F56 #56310F #0F5631
tetradic
#310F56 #560F11 #34560F #0F5654
square
#310F56 #560F11 #34560F #0F5654
split-complementary
#310F56 #56540F #11560F
monochromatic
#0F051A #130622 #310F56 #4F188A #6C21BE

Accessibility & contrast

On white

15.75
#310F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##310F56#FFFFFF#000000##FFFFFF
##310F561.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)
#002358
Deuteranopia (green-blind)
#002255
Tritanopia (blue-blind)
#282232
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #310f56;
/* rgb */ color: rgb(49, 15, 86);
/* oklch */ color: oklch(27.0% 0.119 300.1);
Tailwind
colors: {
  custom: {
    50: '#6e5186',
    500: '#310f56',
    950: '#000000',
  },
}
SCSS
$custom: #310f56;
$custom-light: #6e5186;
$custom-dark: #000000;
JSON
{
  "hex": "#310f56",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 268.732,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27005,
    "c": 0.1186,
    "h": 300.1
  },
  "luminance": 0.01667
}

Semantic roles & 50–950 ramp

primary
#310F56
secondary
#629031
accent
#ED3B98
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #310F56

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

Preview Lab → · Contrast checker → · Palette generator →

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