#31105F#31105F

#31105F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 28.0% C 0.128 H 295.8°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#31105F
RGBrgb(49, 16, 95)
HSLhsl(265, 71%, 22%)
HSVhsv(265, 83%, 37%)
CMYKcmyk(48.4%, 83.2%, 0%, 62.7%)
CIE-LABlab(14.68, 34.38, -40.24)
CIE-LCHlch(14.68, 52.93, 310.51°)
OKLaboklab(28.01% 0.0558 -0.1153)
OKLCHoklch(28.01% 0.128 295.8)
XYZxyz(3.5169, 1.8497, 10.9960)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31105F #3E5F10
analogous
#10175F #31105F #59105F
triadic
#31105F #5F3110 #105F31
tetradic
#31105F #5F1017 #3E5F10 #105F59
square
#31105F #5F1017 #3E5F10 #105F59
split-complementary
#31105F #5F5910 #175F10
monochromatic
#0E041A #16072B #31105F #4C1993 #6722C8

Accessibility & contrast

On white

15.33
#31105F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#31105F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31105F
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31105F#FFFFFF#000000##FFFFFF
##31105F1.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#242637
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #31105f;
/* rgb */ color: rgb(49, 16, 95);
/* oklch */ color: oklch(28.0% 0.128 295.8);
Tailwind
colors: {
  custom: {
    50: '#6f538d',
    500: '#31105f',
    950: '#000000',
  },
}
SCSS
$custom: #31105f;
$custom-light: #6f538d;
$custom-dark: #000000;
JSON
{
  "hex": "#31105f",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 95
  },
  "hsl": {
    "h": 265.063,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.2801,
    "c": 0.12812,
    "h": 295.8
  },
  "luminance": 0.0185
}

Semantic roles & 50–950 ramp

primary
#31105F
secondary
#6E9833
accent
#EE3AA3
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #31105F

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

Preview Lab → · Contrast checker → · Palette generator →

#31105F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva