#311546#311546

#311546 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.090 H 307.7°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#311546
RGBrgb(49, 21, 70)
HSLhsl(274, 54%, 18%)
HSVhsv(274, 70%, 27%)
CMYKcmyk(30%, 70%, 0%, 72.5%)
CIE-LABlab(13.42, 24.61, -25.25)
CIE-LCHlch(13.42, 35.26, 314.27°)
OKLaboklab(26.42% 0.0551 -0.0713)
OKLCHoklch(26.42% 0.09 307.7)
XYZxyz(2.6401, 1.6315, 5.9690)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311546 #2A4615
analogous
#191546 #311546 #461542
triadic
#311546 #463115 #154631
tetradic
#311546 #461915 #2A4615 #154246
square
#311546 #461915 #2A4615 #154246
split-complementary
#311546 #424615 #154619
monochromatic
#100718 #100718 #311546 #522375 #7331A4

Accessibility & contrast

On white

15.83
#311546 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#311546 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311546
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311546#FFFFFF#000000##FFFFFF
##3115461.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002148
Deuteranopia (green-blind)
#0C2345
Tritanopia (blue-blind)
#2E1F2B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #311546;
/* rgb */ color: rgb(49, 21, 70);
/* oklch */ color: oklch(26.4% 0.090 307.7);
Tailwind
colors: {
  custom: {
    50: '#6b547a',
    500: '#311546',
    950: '#000000',
  },
}
SCSS
$custom: #311546;
$custom-light: #6b547a;
$custom-dark: #000000;
JSON
{
  "hex": "#311546",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 70
  },
  "hsl": {
    "h": 274.286,
    "s": 53.846,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26425,
    "c": 0.09011,
    "h": 307.7
  },
  "luminance": 0.01631
}

Semantic roles & 50–950 ramp

primary
#311546
secondary
#567E39
accent
#DD4B89
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #311546

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

Preview Lab → · Contrast checker → · Palette generator →

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