#310F60#310F60

#310F60 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 28.0% C 0.130 H 295.6°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#310F60
RGBrgb(49, 15, 96)
HSLhsl(265, 73%, 22%)
HSVhsv(265, 84%, 38%)
CMYKcmyk(49%, 84.4%, 0%, 62.4%)
CIE-LABlab(14.62, 35.13, -41.01)
CIE-LCHlch(14.62, 54.00, 310.58°)
OKLaboklab(28% 0.0563 -0.1176)
OKLCHoklch(28% 0.13 295.6)
XYZxyz(3.5482, 1.8391, 11.2321)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F60 #3E600F
analogous
#0F1660 #310F60 #5A0F60
triadic
#310F60 #60310F #0F6031
tetradic
#310F60 #600F16 #3E600F #0F605A
square
#310F60 #600F16 #3E600F #0F605A
split-complementary
#310F60 #605A0F #16600F
monochromatic
#0E041A #16072B #310F60 #4C1795 #6720CA

Accessibility & contrast

On white

15.35
#310F60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#310F60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F60
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F60#FFFFFF#000000##FFFFFF
##310F601.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002562
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#242638
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #310f60;
/* rgb */ color: rgb(49, 15, 96);
/* oklch */ color: oklch(28.0% 0.130 295.6);
Tailwind
colors: {
  custom: {
    50: '#6f528e',
    500: '#310f60',
    950: '#000000',
  },
}
SCSS
$custom: #310f60;
$custom-light: #6f528e;
$custom-dark: #000000;
JSON
{
  "hex": "#310f60",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 96
  },
  "hsl": {
    "h": 265.185,
    "s": 72.973,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28,
    "c": 0.13035,
    "h": 295.6
  },
  "luminance": 0.01839
}

Semantic roles & 50–950 ramp

primary
#310F60
secondary
#6E9932
accent
#F038A3
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #310F60

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

Preview Lab → · Contrast checker → · Palette generator →

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