#311244#311244

#311244 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.093 H 309.9°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#311244
RGBrgb(49, 18, 68)
HSLhsl(277, 58%, 17%)
HSVhsv(277, 74%, 27%)
CMYKcmyk(27.9%, 73.5%, 0%, 73.3%)
CIE-LABlab(12.63, 25.82, -25.13)
CIE-LCHlch(12.63, 36.03, 315.78°)
OKLaboklab(25.8% 0.0594 -0.071)
OKLCHoklch(25.8% 0.093 309.9)
XYZxyz(2.5261, 1.5030, 5.6248)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311244 #254412
analogous
#181244 #311244 #44123E
triadic
#311244 #443112 #124431
tetradic
#311244 #441812 #254412 #123E44
square
#311244 #441812 #254412 #123E44
split-complementary
#311244 #3E4412 #124418
monochromatic
#110618 #110618 #311244 #541F74 #772CA5

Accessibility & contrast

On white

16.15
#311244 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#311244 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311244
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311244#FFFFFF#000000##FFFFFF
##3112441.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F46
Deuteranopia (green-blind)
#0B2143
Tritanopia (blue-blind)
#2E1C29
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #311244;
/* rgb */ color: rgb(49, 18, 68);
/* oklch */ color: oklch(25.8% 0.093 309.9);
Tailwind
colors: {
  custom: {
    50: '#6b5278',
    500: '#311244',
    950: '#000000',
  },
}
SCSS
$custom: #311244;
$custom-light: #6b5278;
$custom-dark: #000000;
JSON
{
  "hex": "#311244",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 68
  },
  "hsl": {
    "h": 277.2,
    "s": 58.14,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25803,
    "c": 0.09256,
    "h": 309.9
  },
  "luminance": 0.01503
}

Semantic roles & 50–950 ramp

primary
#311244
secondary
#507D35
accent
#E14681
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #311244

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

Preview Lab → · Contrast checker → · Palette generator →

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