#311354#311354

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

Color values

HEX#311354
RGBrgb(49, 19, 84)
HSLhsl(268, 63%, 20%)
HSVhsv(268, 77%, 33%)
CMYKcmyk(41.7%, 77.4%, 0%, 67.1%)
CIE-LABlab(14.17, 29.71, -33.67)
CIE-LCHlch(14.17, 44.91, 311.42°)
OKLaboklab(27.33% 0.0558 -0.0961)
OKLCHoklch(27.33% 0.111 300.1)
XYZxyz(3.0993, 1.7588, 8.5620)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311354 #365413
analogous
#131654 #311354 #511354
triadic
#311354 #543113 #135431
tetradic
#311354 #541316 #365413 #135451
square
#311354 #541316 #365413 #135451
split-complementary
#311354 #545113 #165413
monochromatic
#0F0619 #140822 #311354 #4E1E86 #6B2AB8

Accessibility & contrast

On white

15.53
#311354 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#311354 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311354
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311354#FFFFFF#000000##FFFFFF
##3113541.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311354;
/* rgb */ color: rgb(49, 19, 84);
/* oklch */ color: oklch(27.3% 0.111 300.1);
Tailwind
colors: {
  custom: {
    50: '#6d5485',
    500: '#311354',
    950: '#000000',
  },
}
SCSS
$custom: #311354;
$custom-light: #6d5485;
$custom-dark: #000000;
JSON
{
  "hex": "#311354",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 84
  },
  "hsl": {
    "h": 267.692,
    "s": 63.107,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27327,
    "c": 0.11108,
    "h": 300.1
  },
  "luminance": 0.01759
}

Semantic roles & 50–950 ramp

primary
#311354
secondary
#658C36
accent
#E6429A
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311354

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

Preview Lab → · Contrast checker → · Palette generator →

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