#311459#311459

#311459 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.116 H 297.5°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#311459
RGBrgb(49, 20, 89)
HSLhsl(265, 63%, 21%)
HSVhsv(265, 78%, 35%)
CMYKcmyk(44.9%, 77.5%, 0%, 65.1%)
CIE-LABlab(14.81, 30.62, -36.00)
CIE-LCHlch(14.81, 47.26, 310.38°)
OKLaboklab(27.93% 0.0535 -0.1029)
OKLCHoklch(27.93% 0.116 297.5)
XYZxyz(3.3195, 1.8745, 9.6362)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311459 #3C5914
analogous
#141A59 #311459 #541459
triadic
#311459 #593114 #145931
tetradic
#311459 #59141A #3C5914 #145954
square
#311459 #59141A #3C5914 #145954
split-complementary
#311459 #595414 #1A5914
monochromatic
#0E0619 #150927 #311459 #4D1F8B #682ABD

Accessibility & contrast

On white

15.27
#311459 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#311459 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311459
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311459#FFFFFF#000000##FFFFFF
##3114591.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255B
Deuteranopia (green-blind)
#002458
Tritanopia (blue-blind)
#272535
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #311459;
/* rgb */ color: rgb(49, 20, 89);
/* oklch */ color: oklch(27.9% 0.116 297.5);
Tailwind
colors: {
  custom: {
    50: '#6e5489',
    500: '#311459',
    950: '#000000',
  },
}
SCSS
$custom: #311459;
$custom-light: #6e5489;
$custom-dark: #000000;
JSON
{
  "hex": "#311459",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 89
  },
  "hsl": {
    "h": 265.217,
    "s": 63.303,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27928,
    "c": 0.116,
    "h": 297.5
  },
  "luminance": 0.01875
}

Semantic roles & 50–950 ramp

primary
#311459
secondary
#6B9138
accent
#E641A1
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311459

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

Preview Lab → · Contrast checker → · Palette generator →

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