#310F68#310F68

#310F68 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.140 H 292.5°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#310F68
RGBrgb(49, 15, 104)
HSLhsl(263, 75%, 23%)
HSVhsv(263, 86%, 41%)
CMYKcmyk(52.9%, 85.6%, 0%, 59.2%)
CIE-LABlab(15.46, 37.39, -44.93)
CIE-LCHlch(15.46, 58.45, 309.77°)
OKLaboklab(28.83% 0.0534 -0.1291)
OKLCHoklch(28.83% 0.14 292.5)
XYZxyz(3.9354, 1.9939, 13.2715)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F68 #46680F
analogous
#0F1A68 #310F68 #5D0F68
triadic
#310F68 #68310F #0F6831
tetradic
#310F68 #680F1A #46680F #0F685D
square
#310F68 #680F1A #46680F #0F685D
split-complementary
#310F68 #685D0F #1A680F
monochromatic
#0D041B #180733 #310F68 #4A179D #631ED3

Accessibility & contrast

On white

15.01
#310F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#310F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F68
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F68#FFFFFF#000000##FFFFFF
##310F681.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286A
Deuteranopia (green-blind)
#002566
Tritanopia (blue-blind)
#1F293C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #310f68;
/* rgb */ color: rgb(49, 15, 104);
/* oklch */ color: oklch(28.8% 0.140 292.5);
Tailwind
colors: {
  custom: {
    50: '#705394',
    500: '#310f68',
    950: '#000000',
  },
}
SCSS
$custom: #310f68;
$custom-light: #705394;
$custom-dark: #000000;
JSON
{
  "hex": "#310f68",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 104
  },
  "hsl": {
    "h": 262.921,
    "s": 74.79,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28834,
    "c": 0.13968,
    "h": 292.5
  },
  "luminance": 0.01994
}

Semantic roles & 50–950 ramp

primary
#310F68
secondary
#76A132
accent
#F136AA
background
#F7F4F9
surface
#EDE7F1
border
#C8C3CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #310F68

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

Preview Lab → · Contrast checker → · Palette generator →

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