#312B4E#312B4E

#312B4E is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.3% C 0.062 H 290.2°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#312B4E
RGBrgb(49, 43, 78)
HSLhsl(250, 29%, 24%)
HSVhsv(250, 45%, 31%)
CMYKcmyk(37.2%, 44.9%, 0%, 69.4%)
CIE-LABlab(19.76, 12.27, -20.64)
CIE-LCHlch(19.76, 24.01, 300.74°)
OKLaboklab(31.32% 0.0213 -0.0579)
OKLCHoklch(31.32% 0.062 290.2)
XYZxyz(3.5053, 2.9307, 7.5872)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312B4E #484E2B
analogous
#2B364E #312B4E #422B4E
triadic
#312B4E #4E312B #2B4E31
tetradic
#312B4E #4E2B36 #484E2B #2B4E42
square
#312B4E #4E2B36 #484E2B #2B4E42
split-complementary
#312B4E #4E422B #364E2B
monochromatic
#0C0B14 #181527 #312B4E #4A4175 #63569D

Accessibility & contrast

On white

13.24
#312B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#312B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312B4E
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312B4E#FFFFFF#000000##FFFFFF
##312B4E1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20304F
Deuteranopia (green-blind)
#202F4D
Tritanopia (blue-blind)
#2A3238
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #312b4e;
/* rgb */ color: rgb(49, 43, 78);
/* oklch */ color: oklch(31.3% 0.062 290.2);
Tailwind
colors: {
  custom: {
    50: '#6a6480',
    500: '#312b4e',
    950: '#000000',
  },
}
SCSS
$custom: #312b4e;
$custom-light: #6a6480;
$custom-dark: #000000;
JSON
{
  "hex": "#312b4e",
  "rgb": {
    "r": 49,
    "g": 43,
    "b": 78
  },
  "hsl": {
    "h": 250.286,
    "s": 28.926,
    "l": 23.725
  },
  "oklch": {
    "l": 0.31315,
    "c": 0.0617,
    "h": 290.2
  },
  "luminance": 0.02931
}

Semantic roles & 50–950 ramp

primary
#312B4E
secondary
#798055
accent
#C563B4
background
#F6F5F7
surface
#EBEAEE
border
#C6C6C9
text
#06050A
muted
#7A797C

Preview Lab

Preview with #312B4E

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

Preview Lab → · Contrast checker → · Palette generator →

#312B4E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva