#311745#311745

#311745 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.085 H 307.7°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#311745
RGBrgb(49, 23, 69)
HSLhsl(274, 50%, 18%)
HSVhsv(274, 67%, 27%)
CMYKcmyk(29%, 66.7%, 0%, 72.9%)
CIE-LABlab(13.80, 23.11, -23.95)
CIE-LCHlch(13.80, 33.28, 313.98°)
OKLaboklab(26.68% 0.0522 -0.0675)
OKLCHoklch(26.68% 0.085 307.7)
XYZxyz(2.6470, 1.6955, 5.8169)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311745 #2B4517
analogous
#1A1745 #311745 #451742
triadic
#311745 #453117 #174531
tetradic
#311745 #451A17 #2B4517 #174245
square
#311745 #451A17 #2B4517 #174245
split-complementary
#311745 #424517 #17451A
monochromatic
#100817 #100817 #311745 #522673 #7236A1

Accessibility & contrast

On white

15.68
#311745 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#311745 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311745
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311745#FFFFFF#000000##FFFFFF
##3117451.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052246
Deuteranopia (green-blind)
#102344
Tritanopia (blue-blind)
#2E202B
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #311745;
/* rgb */ color: rgb(49, 23, 69);
/* oklch */ color: oklch(26.7% 0.085 307.7);
Tailwind
colors: {
  custom: {
    50: '#6b5579',
    500: '#311745',
    950: '#000000',
  },
}
SCSS
$custom: #311745;
$custom-light: #6b5579;
$custom-dark: #000000;
JSON
{
  "hex": "#311745",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 69
  },
  "hsl": {
    "h": 273.913,
    "s": 50,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26677,
    "c": 0.08531,
    "h": 307.7
  },
  "luminance": 0.01695
}

Semantic roles & 50–950 ramp

primary
#311745
secondary
#587C3C
accent
#DA4E8B
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #311745

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

Preview Lab → · Contrast checker → · Palette generator →

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