#311057#311057

#311057 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.119 H 299.4°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#311057
RGBrgb(49, 16, 87)
HSLhsl(268, 69%, 20%)
HSVhsv(268, 82%, 34%)
CMYKcmyk(43.7%, 81.6%, 0%, 65.9%)
CIE-LABlab(13.89, 32.12, -36.15)
CIE-LCHlch(13.89, 48.36, 311.62°)
OKLaboklab(27.22% 0.0582 -0.1033)
OKLCHoklch(27.22% 0.119 299.4)
XYZxyz(3.1718, 1.7116, 9.1782)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311057 #365710
analogous
#101357 #311057 #541057
triadic
#311057 #573110 #105731
tetradic
#311057 #571013 #365710 #105754
square
#311057 #571013 #365710 #105754
split-complementary
#311057 #575410 #135710
monochromatic
#0F051A #140623 #311057 #4E1A8B #6B23BE

Accessibility & contrast

On white

15.64
#311057 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#311057 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311057
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311057#FFFFFF#000000##FFFFFF
##3110571.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002359
Deuteranopia (green-blind)
#002356
Tritanopia (blue-blind)
#282333
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #311057;
/* rgb */ color: rgb(49, 16, 87);
/* oklch */ color: oklch(27.2% 0.119 299.4);
Tailwind
colors: {
  custom: {
    50: '#6e5287',
    500: '#311057',
    950: '#000000',
  },
}
SCSS
$custom: #311057;
$custom-light: #6e5287;
$custom-dark: #000000;
JSON
{
  "hex": "#311057",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 87
  },
  "hsl": {
    "h": 267.887,
    "s": 68.932,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27221,
    "c": 0.1186,
    "h": 299.4
  },
  "luminance": 0.01712
}

Semantic roles & 50–950 ramp

primary
#311057
secondary
#659032
accent
#EC3C9A
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #311057

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

Preview Lab → · Contrast checker → · Palette generator →

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