#311355#311355

#311355 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.112 H 299.6°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#311355
RGBrgb(49, 19, 85)
HSLhsl(267, 63%, 20%)
HSVhsv(267, 78%, 33%)
CMYKcmyk(42.4%, 77.6%, 0%, 66.7%)
CIE-LABlab(14.26, 30.00, -34.20)
CIE-LCHlch(14.26, 45.49, 311.25°)
OKLaboklab(27.42% 0.0555 -0.0976)
OKLCHoklch(27.42% 0.112 299.6)
XYZxyz(3.1388, 1.7746, 8.7697)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311355 #375513
analogous
#131655 #311355 #521355
triadic
#311355 #553113 #135531
tetradic
#311355 #551316 #375513 #135552
square
#311355 #551316 #375513 #135552
split-complementary
#311355 #555213 #165513
monochromatic
#0E0619 #140823 #311355 #4E1E87 #6B29B9

Accessibility & contrast

On white

15.50
#311355 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311355
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311355#FFFFFF#000000##FFFFFF
##3113551.0015.501.3615.50
#FFFFFF15.501.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002457
Deuteranopia (green-blind)
#002454
Tritanopia (blue-blind)
#292332
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #311355;
/* rgb */ color: rgb(49, 19, 85);
/* oklch */ color: oklch(27.4% 0.112 299.6);
Tailwind
colors: {
  custom: {
    50: '#6d5485',
    500: '#311355',
    950: '#000000',
  },
}
SCSS
$custom: #311355;
$custom-light: #6d5485;
$custom-dark: #000000;
JSON
{
  "hex": "#311355",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 85
  },
  "hsl": {
    "h": 267.273,
    "s": 63.462,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27419,
    "c": 0.11232,
    "h": 299.6
  },
  "luminance": 0.01775
}

Semantic roles & 50–950 ramp

primary
#311355
secondary
#668D36
accent
#E6419B
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311355

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

Preview Lab → · Contrast checker → · Palette generator →

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