#311357#311357

#311357 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.115 H 298.7°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#311357
RGBrgb(49, 19, 87)
HSLhsl(266, 64%, 21%)
HSVhsv(266, 78%, 34%)
CMYKcmyk(43.7%, 78.2%, 0%, 65.9%)
CIE-LABlab(14.44, 30.57, -35.26)
CIE-LCHlch(14.44, 46.67, 310.93°)
OKLaboklab(27.61% 0.0551 -0.1007)
OKLCHoklch(27.61% 0.115 298.7)
XYZxyz(3.2194, 1.8068, 9.1941)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311357 #395713
analogous
#131757 #311357 #531357
triadic
#311357 #573113 #135731
tetradic
#311357 #571317 #395713 #135753
square
#311357 #571317 #395713 #135753
split-complementary
#311357 #575313 #175713
monochromatic
#0E0519 #150825 #311357 #4D1E89 #6A29BB

Accessibility & contrast

On white

15.43
#311357 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311357
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311357#FFFFFF#000000##FFFFFF
##3113571.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#002456
Tritanopia (blue-blind)
#282433
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #311357;
/* rgb */ color: rgb(49, 19, 87);
/* oklch */ color: oklch(27.6% 0.115 298.7);
Tailwind
colors: {
  custom: {
    50: '#6d5487',
    500: '#311357',
    950: '#000000',
  },
}
SCSS
$custom: #311357;
$custom-light: #6d5487;
$custom-dark: #000000;
JSON
{
  "hex": "#311357",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 87
  },
  "hsl": {
    "h": 266.471,
    "s": 64.151,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27605,
    "c": 0.11482,
    "h": 298.7
  },
  "luminance": 0.01807
}

Semantic roles & 50–950 ramp

primary
#311357
secondary
#688F36
accent
#E7419E
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311357

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

Preview Lab → · Contrast checker → · Palette generator →

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