#310F51#310F51

#310F51 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.113 H 302.7°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#310F51
RGBrgb(49, 15, 81)
HSLhsl(271, 69%, 19%)
HSVhsv(271, 81%, 32%)
CMYKcmyk(39.5%, 81.5%, 0%, 68.2%)
CIE-LABlab(13.16, 30.94, -33.26)
CIE-LCHlch(13.16, 45.43, 312.93°)
OKLaboklab(26.53% 0.0609 -0.0948)
OKLCHoklch(26.53% 0.113 302.7)
XYZxyz(2.9223, 1.5887, 7.9357)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F51 #2F510F
analogous
#100F51 #310F51 #510F50
triadic
#310F51 #51310F #0F5131
tetradic
#310F51 #51100F #2F510F #0F5051
square
#310F51 #51100F #2F510F #0F5051
split-complementary
#310F51 #50510F #0F5110
monochromatic
#10051A #12051D #310F51 #501985 #6F22B8

Accessibility & contrast

On white

15.94
#310F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#310F51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F51
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F51#FFFFFF#000000##FFFFFF
##310F511.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#002250
Tritanopia (blue-blind)
#2A202F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #310f51;
/* rgb */ color: rgb(49, 15, 81);
/* oklch */ color: oklch(26.5% 0.113 302.7);
Tailwind
colors: {
  custom: {
    50: '#6d5182',
    500: '#310f51',
    950: '#000000',
  },
}
SCSS
$custom: #310f51;
$custom-light: #6d5182;
$custom-dark: #000000;
JSON
{
  "hex": "#310f51",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 81
  },
  "hsl": {
    "h": 270.909,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26531,
    "c": 0.11268,
    "h": 302.7
  },
  "luminance": 0.01589
}

Semantic roles & 50–950 ramp

primary
#310F51
secondary
#5D8B31
accent
#EC3C91
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #310F51

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

Preview Lab → · Contrast checker → · Palette generator →

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