#310F49#310F49

#310F49 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.103 H 307.4°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#310F49
RGBrgb(49, 15, 73)
HSLhsl(275, 66%, 17%)
HSVhsv(275, 79%, 29%)
CMYKcmyk(32.9%, 79.5%, 0%, 71.4%)
CIE-LABlab(12.45, 28.78, -28.90)
CIE-LCHlch(12.45, 40.78, 314.88°)
OKLaboklab(25.81% 0.0626 -0.082)
OKLCHoklch(25.81% 0.103 307.4)
XYZxyz(2.6398, 1.4757, 6.4478)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F49 #27490F
analogous
#140F49 #310F49 #490F44
triadic
#310F49 #49310F #0F4931
tetradic
#310F49 #49140F #27490F #0F4449
square
#310F49 #49140F #27490F #0F4449
split-complementary
#310F49 #44490F #0F4914
monochromatic
#110519 #110519 #310F49 #53197C #7524AF

Accessibility & contrast

On white

16.21
#310F49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#310F49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F49
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F49#FFFFFF#000000##FFFFFF
##310F491.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4B
Deuteranopia (green-blind)
#012148
Tritanopia (blue-blind)
#2D1C2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #310f49;
/* rgb */ color: rgb(49, 15, 73);
/* oklch */ color: oklch(25.8% 0.103 307.4);
Tailwind
colors: {
  custom: {
    50: '#6c517c',
    500: '#310f49',
    950: '#000000',
  },
}
SCSS
$custom: #310f49;
$custom-light: #6c517c;
$custom-dark: #000000;
JSON
{
  "hex": "#310f49",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 73
  },
  "hsl": {
    "h": 275.172,
    "s": 65.909,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25807,
    "c": 0.10318,
    "h": 307.4
  },
  "luminance": 0.01476
}

Semantic roles & 50–950 ramp

primary
#310F49
secondary
#538330
accent
#E93F85
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #310F49

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

Preview Lab → · Contrast checker → · Palette generator →

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