#311753#311753

#311753 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.104 H 299.4°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#311753
RGBrgb(49, 23, 83)
HSLhsl(266, 57%, 21%)
HSVhsv(266, 72%, 33%)
CMYKcmyk(41%, 72.3%, 0%, 67.5%)
CIE-LABlab(14.90, 27.14, -31.80)
CIE-LCHlch(14.90, 41.81, 310.48°)
OKLaboklab(27.82% 0.0511 -0.0906)
OKLCHoklch(27.82% 0.104 299.4)
XYZxyz(3.1340, 1.8903, 8.3817)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311753 #395317
analogous
#171B53 #311753 #4F1753
triadic
#311753 #533117 #175331
tetradic
#311753 #53171B #395317 #17534F
square
#311753 #53171B #395317 #17534F
split-complementary
#311753 #534F17 #1B5317
monochromatic
#0E0718 #150A23 #311753 #4D2483 #6A32B3

Accessibility & contrast

On white

15.24
#311753 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#311753 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311753
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311753#FFFFFF#000000##FFFFFF
##3117531.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002555
Deuteranopia (green-blind)
#002552
Tritanopia (blue-blind)
#292532
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #311753;
/* rgb */ color: rgb(49, 23, 83);
/* oklch */ color: oklch(27.8% 0.104 299.4);
Tailwind
colors: {
  custom: {
    50: '#6c5684',
    500: '#311753',
    950: '#000000',
  },
}
SCSS
$custom: #311753;
$custom-light: #6c5684;
$custom-dark: #000000;
JSON
{
  "hex": "#311753",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 83
  },
  "hsl": {
    "h": 266,
    "s": 56.604,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27824,
    "c": 0.10402,
    "h": 299.4
  },
  "luminance": 0.0189
}

Semantic roles & 50–950 ramp

primary
#311753
secondary
#688A3C
accent
#E0489E
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311753

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

Preview Lab → · Contrast checker → · Palette generator →

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