#310B43#310B43

#310B43 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.8% C 0.102 H 312.2°. Best body text is #FFFFFF at 16.67:1 contrast (WCAG AA passes).

Color values

HEX#310B43
RGBrgb(49, 11, 67)
HSLhsl(281, 72%, 15%)
HSVhsv(281, 84%, 26%)
CMYKcmyk(26.9%, 83.6%, 0%, 73.7%)
CIE-LABlab(11.26, 29.18, -26.63)
CIE-LCHlch(11.26, 39.51, 317.61°)
OKLaboklab(24.8% 0.0684 -0.0753)
OKLCHoklch(24.8% 0.102 312.2)
XYZxyz(2.3992, 1.2976, 5.4332)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#310B43 #1D430B
analogous
#150B43 #310B43 #430B39
triadic
#310B43 #43310B #0B4331
tetradic
#310B43 #43150B #1D430B #0B3943
square
#310B43 #43150B #1D430B #0B3943
split-complementary
#310B43 #39430B #0B4315
monochromatic
#13041A #13041A #310B43 #571478 #7E1CAC

Accessibility & contrast

On white

16.67
#310B43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#310B43 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #310B43
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##310B43#FFFFFF#000000##FFFFFF
##310B431.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C45
Deuteranopia (green-blind)
#051F42
Tritanopia (blue-blind)
#2F1826
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #310b43;
/* rgb */ color: rgb(49, 11, 67);
/* oklch */ color: oklch(24.8% 0.102 312.2);
Tailwind
colors: {
  custom: {
    50: '#6c4e77',
    500: '#310b43',
    950: '#000000',
  },
}
SCSS
$custom: #310b43;
$custom-light: #6c4e77;
$custom-dark: #000000;
JSON
{
  "hex": "#310b43",
  "rgb": {
    "r": 49,
    "g": 11,
    "b": 67
  },
  "hsl": {
    "h": 280.714,
    "s": 71.795,
    "l": 15.294
  },
  "oklch": {
    "l": 0.24801,
    "c": 0.10172,
    "h": 312.2
  },
  "luminance": 0.01298
}

Semantic roles & 50–950 ramp

primary
#310B43
secondary
#46802A
accent
#EF3974
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #310B43

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

Preview Lab → · Contrast checker → · Palette generator →

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