#311249#311249

#311249 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.099 H 306.6°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#311249
RGBrgb(49, 18, 73)
HSLhsl(274, 60%, 18%)
HSVhsv(274, 75%, 29%)
CMYKcmyk(32.9%, 75.3%, 0%, 71.4%)
CIE-LABlab(13.03, 27.17, -27.97)
CIE-LCHlch(13.03, 39.00, 314.17°)
OKLaboklab(26.22% 0.0589 -0.0793)
OKLCHoklch(26.22% 0.099 306.6)
XYZxyz(2.6853, 1.5666, 6.4630)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311249 #2A4912
analogous
#151249 #311249 #491245
triadic
#311249 #493112 #124931
tetradic
#311249 #491512 #2A4912 #124549
square
#311249 #491512 #2A4912 #124549
split-complementary
#311249 #454912 #124915
monochromatic
#100619 #100619 #311249 #521E7A #732AAB

Accessibility & contrast

On white

15.99
#311249 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#311249 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311249
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311249#FFFFFF#000000##FFFFFF
##3112491.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214B
Deuteranopia (green-blind)
#042248
Tritanopia (blue-blind)
#2D1E2B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #311249;
/* rgb */ color: rgb(49, 18, 73);
/* oklch */ color: oklch(26.2% 0.099 306.6);
Tailwind
colors: {
  custom: {
    50: '#6c527c',
    500: '#311249',
    950: '#000000',
  },
}
SCSS
$custom: #311249;
$custom-light: #6c527c;
$custom-dark: #000000;
JSON
{
  "hex": "#311249",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 73
  },
  "hsl": {
    "h": 273.818,
    "s": 60.44,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26216,
    "c": 0.09878,
    "h": 306.6
  },
  "luminance": 0.01567
}

Semantic roles & 50–950 ramp

primary
#311249
secondary
#568235
accent
#E4448A
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #311249

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

Preview Lab → · Contrast checker → · Palette generator →

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