#310F46#310F46

#310F46 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.100 H 309.3°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#310F46
RGBrgb(49, 15, 70)
HSLhsl(277, 65%, 17%)
HSVhsv(277, 79%, 27%)
CMYKcmyk(30%, 78.6%, 0%, 72.5%)
CIE-LABlab(12.20, 27.98, -27.22)
CIE-LCHlch(12.20, 39.03, 315.80°)
OKLaboklab(25.55% 0.0631 -0.0771)
OKLCHoklch(25.55% 0.1 309.3)
XYZxyz(2.5427, 1.4369, 5.9366)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F46 #24460F
analogous
#160F46 #310F46 #460F40
triadic
#310F46 #46310F #0F4631
tetradic
#310F46 #46160F #24460F #0F4046
square
#310F46 #46160F #24460F #0F4046
split-complementary
#310F46 #40460F #0F4616
monochromatic
#120519 #120519 #310F46 #541A78 #7825AB

Accessibility & contrast

On white

16.31
#310F46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310F46
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F46#FFFFFF#000000##FFFFFF
##310F461.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F48
Deuteranopia (green-blind)
#052045
Tritanopia (blue-blind)
#2E1B29
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #310f46;
/* rgb */ color: rgb(49, 15, 70);
/* oklch */ color: oklch(25.5% 0.100 309.3);
Tailwind
colors: {
  custom: {
    50: '#6c517a',
    500: '#310f46',
    950: '#000000',
  },
}
SCSS
$custom: #310f46;
$custom-light: #6c517a;
$custom-dark: #000000;
JSON
{
  "hex": "#310f46",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 70
  },
  "hsl": {
    "h": 277.091,
    "s": 64.706,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25549,
    "c": 0.09961,
    "h": 309.3
  },
  "luminance": 0.01437
}

Semantic roles & 50–950 ramp

primary
#310F46
secondary
#4F8030
accent
#E84080
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #310F46

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

Preview Lab → · Contrast checker → · Palette generator →

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