#310F48#310F48

#310F48 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.102 H 308.0°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#310F48
RGBrgb(49, 15, 72)
HSLhsl(276, 66%, 17%)
HSVhsv(276, 79%, 28%)
CMYKcmyk(31.9%, 79.2%, 0%, 71.8%)
CIE-LABlab(12.37, 28.51, -28.34)
CIE-LCHlch(12.37, 40.20, 315.17°)
OKLaboklab(25.72% 0.0628 -0.0804)
OKLCHoklch(25.72% 0.102 308)
XYZxyz(2.6069, 1.4625, 6.2746)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F48 #26480F
analogous
#140F48 #310F48 #480F43
triadic
#310F48 #48310F #0F4831
tetradic
#310F48 #48140F #26480F #0F4348
square
#310F48 #48140F #26480F #0F4348
split-complementary
#310F48 #43480F #0F4814
monochromatic
#110519 #110519 #310F48 #531A7B #7624AD

Accessibility & contrast

On white

16.25
#310F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310F48
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F48#FFFFFF#000000##FFFFFF
##310F481.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4A
Deuteranopia (green-blind)
#022147
Tritanopia (blue-blind)
#2D1C2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #310f48;
/* rgb */ color: rgb(49, 15, 72);
/* oklch */ color: oklch(25.7% 0.102 308.0);
Tailwind
colors: {
  custom: {
    50: '#6c517b',
    500: '#310f48',
    950: '#000000',
  },
}
SCSS
$custom: #310f48;
$custom-light: #6c517b;
$custom-dark: #000000;
JSON
{
  "hex": "#310f48",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 72
  },
  "hsl": {
    "h": 275.789,
    "s": 65.517,
    "l": 17.059
  },
  "oklch": {
    "l": 0.2572,
    "c": 0.102,
    "h": 308
  },
  "luminance": 0.01462
}

Semantic roles & 50–950 ramp

primary
#310F48
secondary
#518230
accent
#E83F84
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #310F48

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

Preview Lab → · Contrast checker → · Palette generator →

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