#311454#311454

#311454 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.110 H 299.9°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#311454
RGBrgb(49, 20, 84)
HSLhsl(267, 62%, 20%)
HSVhsv(267, 76%, 33%)
CMYKcmyk(41.7%, 76.2%, 0%, 67.1%)
CIE-LABlab(14.36, 29.16, -33.35)
CIE-LCHlch(14.36, 44.30, 311.16°)
OKLaboklab(27.47% 0.0546 -0.0951)
OKLCHoklch(27.47% 0.11 299.9)
XYZxyz(3.1166, 1.7933, 8.5677)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311454 #375414
analogous
#141754 #311454 #511454
triadic
#311454 #543114 #145431
tetradic
#311454 #541417 #375414 #145451
square
#311454 #541417 #375414 #145451
split-complementary
#311454 #545114 #175414
monochromatic
#0E0619 #140823 #311454 #4E2085 #6B2CB7

Accessibility & contrast

On white

15.46
#311454 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311454
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311454#FFFFFF#000000##FFFFFF
##3114541.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311454;
/* rgb */ color: rgb(49, 20, 84);
/* oklch */ color: oklch(27.5% 0.110 299.9);
Tailwind
colors: {
  custom: {
    50: '#6d5485',
    500: '#311454',
    950: '#000000',
  },
}
SCSS
$custom: #311454;
$custom-light: #6d5485;
$custom-dark: #000000;
JSON
{
  "hex": "#311454",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 84
  },
  "hsl": {
    "h": 267.188,
    "s": 61.538,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27467,
    "c": 0.10969,
    "h": 299.9
  },
  "luminance": 0.01793
}

Semantic roles & 50–950 ramp

primary
#311454
secondary
#668C38
accent
#E5439B
background
#F6F4F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311454

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

Preview Lab → · Contrast checker → · Palette generator →

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