#311457#311457

#311457 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.113 H 298.4°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#311457
RGBrgb(49, 20, 87)
HSLhsl(266, 63%, 21%)
HSVhsv(266, 77%, 34%)
CMYKcmyk(43.7%, 77%, 0%, 65.9%)
CIE-LABlab(14.63, 30.03, -34.95)
CIE-LCHlch(14.63, 46.08, 310.67°)
OKLaboklab(27.74% 0.054 -0.0998)
OKLCHoklch(27.74% 0.113 298.4)
XYZxyz(3.2366, 1.8414, 9.1999)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311457 #3A5714
analogous
#141857 #311457 #521457
triadic
#311457 #573114 #145731
tetradic
#311457 #571418 #3A5714 #145752
square
#311457 #571418 #3A5714 #145752
split-complementary
#311457 #575214 #185714
monochromatic
#0E0619 #150925 #311457 #4D1F89 #692BBB

Accessibility & contrast

On white

15.35
#311457 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#311457 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311457
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311457#FFFFFF#000000##FFFFFF
##3114571.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311457;
/* rgb */ color: rgb(49, 20, 87);
/* oklch */ color: oklch(27.7% 0.113 298.4);
Tailwind
colors: {
  custom: {
    50: '#6d5487',
    500: '#311457',
    950: '#000000',
  },
}
SCSS
$custom: #311457;
$custom-light: #6d5487;
$custom-dark: #000000;
JSON
{
  "hex": "#311457",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 87
  },
  "hsl": {
    "h": 265.97,
    "s": 62.617,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27741,
    "c": 0.11348,
    "h": 298.4
  },
  "luminance": 0.01841
}

Semantic roles & 50–950 ramp

primary
#311457
secondary
#698F38
accent
#E6429F
background
#F6F5F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311457

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

Preview Lab → · Contrast checker → · Palette generator →

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