#311553#311553

#311553 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.107 H 300.1°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#311553
RGBrgb(49, 21, 83)
HSLhsl(267, 60%, 20%)
HSVhsv(267, 75%, 33%)
CMYKcmyk(41%, 74.7%, 0%, 67.5%)
CIE-LABlab(14.48, 28.31, -32.49)
CIE-LCHlch(14.48, 43.09, 311.07°)
OKLaboklab(27.52% 0.0536 -0.0926)
OKLCHoklch(27.52% 0.107 300.1)
XYZxyz(3.0957, 1.8138, 8.3689)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311553 #375315
analogous
#151853 #311553 #501553
triadic
#311553 #533115 #155331
tetradic
#311553 #531518 #375315 #155350
square
#311553 #531518 #375315 #155350
split-complementary
#311553 #535015 #185315
monochromatic
#0E0618 #140922 #311553 #4E2184 #6B2EB5

Accessibility & contrast

On white

15.41
#311553 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#311553 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311553
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311553#FFFFFF#000000##FFFFFF
##3115531.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002455
Deuteranopia (green-blind)
#002452
Tritanopia (blue-blind)
#292432
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #311553;
/* rgb */ color: rgb(49, 21, 83);
/* oklch */ color: oklch(27.5% 0.107 300.1);
Tailwind
colors: {
  custom: {
    50: '#6d5584',
    500: '#311553',
    950: '#000000',
  },
}
SCSS
$custom: #311553;
$custom-light: #6d5584;
$custom-dark: #000000;
JSON
{
  "hex": "#311553",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 83
  },
  "hsl": {
    "h": 267.097,
    "s": 59.615,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27521,
    "c": 0.10699,
    "h": 300.1
  },
  "luminance": 0.01814
}

Semantic roles & 50–950 ramp

primary
#311553
secondary
#668B39
accent
#E3459C
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311553

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

Preview Lab → · Contrast checker → · Palette generator →

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