#310F53#310F53

#310F53 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.115 H 301.6°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#310F53
RGBrgb(49, 15, 83)
HSLhsl(270, 69%, 19%)
HSVhsv(270, 82%, 33%)
CMYKcmyk(41%, 81.9%, 0%, 67.5%)
CIE-LABlab(13.35, 31.50, -34.33)
CIE-LCHlch(13.35, 46.59, 312.54°)
OKLaboklab(26.72% 0.0603 -0.098)
OKLCHoklch(26.72% 0.115 301.6)
XYZxyz(2.9984, 1.6191, 8.3365)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F53 #31530F
analogous
#0F0F53 #310F53 #530F53
triadic
#310F53 #53310F #0F5331
tetradic
#310F53 #530F0F #31530F #0F5353
square
#310F53 #530F0F #31530F #0F5353
split-complementary
#310F53 #53530F #0F530F
monochromatic
#0F051A #12061F #310F53 #501887 #6E22BB

Accessibility & contrast

On white

15.86
#310F53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #310F53
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F53#FFFFFF#000000##FFFFFF
##310F531.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002255
Deuteranopia (green-blind)
#002252
Tritanopia (blue-blind)
#2A2030
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #310f53;
/* rgb */ color: rgb(49, 15, 83);
/* oklch */ color: oklch(26.7% 0.115 301.6);
Tailwind
colors: {
  custom: {
    50: '#6d5184',
    500: '#310f53',
    950: '#000000',
  },
}
SCSS
$custom: #310f53;
$custom-light: #6d5184;
$custom-dark: #000000;
JSON
{
  "hex": "#310f53",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 83
  },
  "hsl": {
    "h": 270,
    "s": 69.388,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26719,
    "c": 0.11506,
    "h": 301.6
  },
  "luminance": 0.01619
}

Semantic roles & 50–950 ramp

primary
#310F53
secondary
#5F8D31
accent
#EC3C94
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #310F53

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

Preview Lab → · Contrast checker → · Palette generator →

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