#310F47#310F47

#310F47 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.101 H 308.7°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#310F47
RGBrgb(49, 15, 71)
HSLhsl(276, 65%, 17%)
HSVhsv(276, 79%, 28%)
CMYKcmyk(31%, 78.9%, 0%, 72.2%)
CIE-LABlab(12.28, 28.25, -27.78)
CIE-LCHlch(12.28, 39.62, 315.48°)
OKLaboklab(25.63% 0.063 -0.0787)
OKLCHoklch(25.63% 0.101 308.7)
XYZxyz(2.5745, 1.4496, 6.1042)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F47 #25470F
analogous
#150F47 #310F47 #470F41
triadic
#310F47 #47310F #0F4731
tetradic
#310F47 #47150F #25470F #0F4147
square
#310F47 #47150F #25470F #0F4147
split-complementary
#310F47 #41470F #0F4715
monochromatic
#110519 #110519 #310F47 #541A7A #7724AC

Accessibility & contrast

On white

16.28
#310F47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#310F47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F47
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F47#FFFFFF#000000##FFFFFF
##310F471.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F49
Deuteranopia (green-blind)
#032046
Tritanopia (blue-blind)
#2E1C29
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #310f47;
/* rgb */ color: rgb(49, 15, 71);
/* oklch */ color: oklch(25.6% 0.101 308.7);
Tailwind
colors: {
  custom: {
    50: '#6c517b',
    500: '#310f47',
    950: '#000000',
  },
}
SCSS
$custom: #310f47;
$custom-light: #6c517b;
$custom-dark: #000000;
JSON
{
  "hex": "#310f47",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 71
  },
  "hsl": {
    "h": 276.429,
    "s": 65.116,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25634,
    "c": 0.10081,
    "h": 308.7
  },
  "luminance": 0.0145
}

Semantic roles & 50–950 ramp

primary
#310F47
secondary
#508130
accent
#E84082
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #310F47

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

Preview Lab → · Contrast checker → · Palette generator →

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