#311754#311754

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

Color values

HEX#311754
RGBrgb(49, 23, 84)
HSLhsl(266, 57%, 21%)
HSVhsv(266, 73%, 33%)
CMYKcmyk(41.7%, 72.6%, 0%, 67.1%)
CIE-LABlab(14.98, 27.44, -32.34)
CIE-LCHlch(14.98, 42.41, 310.31°)
OKLaboklab(27.91% 0.051 -0.0922)
OKLCHoklch(27.91% 0.105 298.9)
XYZxyz(3.1729, 1.9058, 8.5865)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311754 #3A5417
analogous
#171B54 #311754 #4F1754
triadic
#311754 #543117 #175431
tetradic
#311754 #54171B #3A5417 #17544F
square
#311754 #54171B #3A5417 #17544F
split-complementary
#311754 #544F17 #1B5417
monochromatic
#0E0718 #150A24 #311754 #4D2484 #6931B4

Accessibility & contrast

On white

15.20
#311754 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311754
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311754#FFFFFF#000000##FFFFFF
##3117541.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002656
Deuteranopia (green-blind)
#002553
Tritanopia (blue-blind)
#292533
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #311754;
/* rgb */ color: rgb(49, 23, 84);
/* oklch */ color: oklch(27.9% 0.105 298.9);
Tailwind
colors: {
  custom: {
    50: '#6d5685',
    500: '#311754',
    950: '#000000',
  },
}
SCSS
$custom: #311754;
$custom-light: #6d5685;
$custom-dark: #000000;
JSON
{
  "hex": "#311754",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 84
  },
  "hsl": {
    "h": 265.574,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27911,
    "c": 0.10534,
    "h": 298.9
  },
  "luminance": 0.01906
}

Semantic roles & 50–950 ramp

primary
#311754
secondary
#698B3C
accent
#E0489F
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311754

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

Preview Lab → · Contrast checker → · Palette generator →

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