#311145#311145

#311145 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.095 H 309.5°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#311145
RGBrgb(49, 17, 69)
HSLhsl(277, 60%, 17%)
HSVhsv(277, 75%, 27%)
CMYKcmyk(29%, 75.4%, 0%, 72.9%)
CIE-LABlab(12.50, 26.65, -26.03)
CIE-LCHlch(12.50, 37.25, 315.67°)
OKLaboklab(25.74% 0.0607 -0.0736)
OKLCHoklch(25.74% 0.095 309.5)
XYZxyz(2.5410, 1.4836, 5.7816)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311145 #254511
analogous
#171145 #311145 #45113F
triadic
#311145 #453111 #114531
tetradic
#311145 #451711 #254511 #113F45
square
#311145 #451711 #254511 #113F45
split-complementary
#311145 #3F4511 #114517
monochromatic
#110619 #110619 #311145 #541D76 #7729A7

Accessibility & contrast

On white

16.19
#311145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311145
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311145#FFFFFF#000000##FFFFFF
##3111451.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F47
Deuteranopia (green-blind)
#082144
Tritanopia (blue-blind)
#2E1C29
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #311145;
/* rgb */ color: rgb(49, 17, 69);
/* oklch */ color: oklch(25.7% 0.095 309.5);
Tailwind
colors: {
  custom: {
    50: '#6b5279',
    500: '#311145',
    950: '#000000',
  },
}
SCSS
$custom: #311145;
$custom-light: #6b5279;
$custom-dark: #000000;
JSON
{
  "hex": "#311145",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 69
  },
  "hsl": {
    "h": 276.923,
    "s": 60.465,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25739,
    "c": 0.09539,
    "h": 309.5
  },
  "luminance": 0.01484
}

Semantic roles & 50–950 ramp

primary
#311145
secondary
#507F33
accent
#E44482
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #311145

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

Preview Lab → · Contrast checker → · Palette generator →

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