#310F45#310F45

#310F45 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.098 H 310.0°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#310F45
RGBrgb(49, 15, 69)
HSLhsl(278, 64%, 16%)
HSVhsv(278, 78%, 27%)
CMYKcmyk(29%, 78.3%, 0%, 72.9%)
CIE-LABlab(12.12, 27.72, -26.65)
CIE-LCHlch(12.12, 38.45, 316.13°)
OKLaboklab(25.46% 0.0633 -0.0754)
OKLCHoklch(25.46% 0.098 310)
XYZxyz(2.5114, 1.4243, 5.7717)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310F45 #23450F
analogous
#160F45 #310F45 #450F3E
triadic
#310F45 #45310F #0F4531
tetradic
#310F45 #45160F #23450F #0F3E45
square
#310F45 #45160F #23450F #0F3E45
split-complementary
#310F45 #3E450F #0F4516
monochromatic
#120519 #120519 #310F45 #551A77 #7825AA

Accessibility & contrast

On white

16.34
#310F45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#310F45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310F45
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310F45#FFFFFF#000000##FFFFFF
##310F451.0016.341.2816.34
#FFFFFF16.341.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E47
Deuteranopia (green-blind)
#062044
Tritanopia (blue-blind)
#2E1B28
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #310f45;
/* rgb */ color: rgb(49, 15, 69);
/* oklch */ color: oklch(25.5% 0.098 310.0);
Tailwind
colors: {
  custom: {
    50: '#6c5179',
    500: '#310f45',
    950: '#000000',
  },
}
SCSS
$custom: #310f45;
$custom-light: #6c5179;
$custom-dark: #000000;
JSON
{
  "hex": "#310f45",
  "rgb": {
    "r": 49,
    "g": 15,
    "b": 69
  },
  "hsl": {
    "h": 277.778,
    "s": 64.286,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25464,
    "c": 0.09843,
    "h": 310
  },
  "luminance": 0.01424
}

Semantic roles & 50–950 ramp

primary
#310F45
secondary
#4E7F30
accent
#E7417E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #310F45

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

Preview Lab → · Contrast checker → · Palette generator →

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