#312652#312652

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

Color values

HEX#312652
RGBrgb(49, 38, 82)
HSLhsl(255, 37%, 24%)
HSVhsv(255, 54%, 32%)
CMYKcmyk(40.2%, 53.7%, 0%, 67.8%)
CIE-LABlab(18.58, 17.03, -25.22)
CIE-LCHlch(18.58, 30.43, 304.03°)
OKLaboklab(30.5% 0.0299 -0.0713)
OKLCHoklch(30.5% 0.077 292.7)
XYZxyz(3.4823, 2.6483, 8.3087)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312652 #475226
analogous
#263152 #312652 #472652
triadic
#312652 #523126 #265231
tetradic
#312652 #522631 #475226 #265247
square
#312652 #522631 #475226 #265247
split-complementary
#312652 #524726 #315226
monochromatic
#0C0A15 #181328 #312652 #4A397C #634DA6

Accessibility & contrast

On white

13.73
#312652 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312652
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312652#FFFFFF#000000##FFFFFF
##3126521.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162E54
Deuteranopia (green-blind)
#172C51
Tritanopia (blue-blind)
#292F38
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #312652;
/* rgb */ color: rgb(49, 38, 82);
/* oklch */ color: oklch(30.5% 0.077 292.7);
Tailwind
colors: {
  custom: {
    50: '#6b6083',
    500: '#312652',
    950: '#000000',
  },
}
SCSS
$custom: #312652;
$custom-light: #6b6083;
$custom-dark: #000000;
JSON
{
  "hex": "#312652",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 82
  },
  "hsl": {
    "h": 255,
    "s": 36.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.305,
    "c": 0.07727,
    "h": 292.7
  },
  "luminance": 0.02648
}

Semantic roles & 50–950 ramp

primary
#312652
secondary
#77854F
accent
#CD5BB0
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07050A
muted
#7A797C

Preview Lab

Preview with #312652

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

Preview Lab → · Contrast checker → · Palette generator →

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