#310C53#310C53

#310C53 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.4% C 0.119 H 302.2°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#310C53
RGBrgb(49, 12, 83)
HSLhsl(271, 75%, 19%)
HSVhsv(271, 86%, 33%)
CMYKcmyk(41%, 85.5%, 0%, 67.5%)
CIE-LABlab(12.86, 32.89, -35.12)
CIE-LCHlch(12.86, 48.11, 313.12°)
OKLaboklab(26.38% 0.0632 -0.1003)
OKLCHoklch(26.38% 0.119 302.2)
XYZxyz(2.9591, 1.5404, 8.3234)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310C53 #2E530C
analogous
#0E0C53 #310C53 #530C51
triadic
#310C53 #53310C #0C5331
tetradic
#310C53 #530E0C #2E530C #0C5153
square
#310C53 #530E0C #2E530C #0C5153
split-complementary
#310C53 #51530C #0C530E
monochromatic
#10041B #11041E #310C53 #511488 #701BBE

Accessibility & contrast

On white

16.06
#310C53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#310C53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310C53
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310C53#FFFFFF#000000##FFFFFF
##310C531.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002155
Deuteranopia (green-blind)
#002152
Tritanopia (blue-blind)
#2A1F2F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #310c53;
/* rgb */ color: rgb(49, 12, 83);
/* oklch */ color: oklch(26.4% 0.119 302.2);
Tailwind
colors: {
  custom: {
    50: '#6d5084',
    500: '#310c53',
    950: '#000000',
  },
}
SCSS
$custom: #310c53;
$custom-light: #6d5084;
$custom-dark: #000000;
JSON
{
  "hex": "#310c53",
  "rgb": {
    "r": 49,
    "g": 12,
    "b": 83
  },
  "hsl": {
    "h": 271.268,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.2638,
    "c": 0.11854,
    "h": 302.2
  },
  "luminance": 0.0154
}

Semantic roles & 50–950 ramp

primary
#310C53
secondary
#5B8E2D
accent
#F13690
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #310C53

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

Preview Lab → · Contrast checker → · Palette generator →

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