#312555#312555

#312555 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.5% C 0.084 H 292.2°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#312555
RGBrgb(49, 37, 85)
HSLhsl(255, 39%, 24%)
HSVhsv(255, 56%, 33%)
CMYKcmyk(42.4%, 56.5%, 0%, 66.7%)
CIE-LABlab(18.50, 18.68, -27.35)
CIE-LCHlch(18.50, 33.12, 304.33°)
OKLaboklab(30.51% 0.0317 -0.0775)
OKLCHoklch(30.51% 0.084 292.2)
XYZxyz(3.5674, 2.6319, 8.9126)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312555 #495525
analogous
#253155 #312555 #492555
triadic
#312555 #553125 #255531
tetradic
#312555 #552531 #495525 #255549
square
#312555 #552531 #495525 #255549
split-complementary
#312555 #554925 #315525
monochromatic
#0C0915 #18122A #312555 #4A3880 #624AAA

Accessibility & contrast

On white

13.76
#312555 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#312555 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312555
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312555#FFFFFF#000000##FFFFFF
##3125551.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112E57
Deuteranopia (green-blind)
#132C54
Tritanopia (blue-blind)
#282F39
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #312555;
/* rgb */ color: rgb(49, 37, 85);
/* oklch */ color: oklch(30.5% 0.084 292.2);
Tailwind
colors: {
  custom: {
    50: '#6c5f85',
    500: '#312555',
    950: '#000000',
  },
}
SCSS
$custom: #312555;
$custom-light: #6c5f85;
$custom-dark: #000000;
JSON
{
  "hex": "#312555",
  "rgb": {
    "r": 49,
    "g": 37,
    "b": 85
  },
  "hsl": {
    "h": 255,
    "s": 39.344,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30512,
    "c": 0.08373,
    "h": 292.2
  },
  "luminance": 0.02632
}

Semantic roles & 50–950 ramp

primary
#312555
secondary
#7A884D
accent
#CF59B2
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #312555

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

Preview Lab → · Contrast checker → · Palette generator →

#312555 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva