#311448#311448

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

Color values

HEX#311448
RGBrgb(49, 20, 72)
HSLhsl(273, 57%, 18%)
HSVhsv(273, 72%, 28%)
CMYKcmyk(31.9%, 72.2%, 0%, 71.8%)
CIE-LABlab(13.36, 25.76, -26.74)
CIE-LCHlch(13.36, 37.13, 313.92°)
OKLaboklab(26.43% 0.0563 -0.0757)
OKLCHoklch(26.43% 0.094 306.7)
XYZxyz(2.6862, 1.6212, 6.3010)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311448 #2B4814
analogous
#171448 #311448 #481445
triadic
#311448 #483114 #144831
tetradic
#311448 #481714 #2B4814 #144548
square
#311448 #481714 #2B4814 #144548
split-complementary
#311448 #454814 #144817
monochromatic
#100718 #100718 #311448 #522178 #722FA8

Accessibility & contrast

On white

15.86
#311448 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#311448 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311448
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311448#FFFFFF#000000##FFFFFF
##3114481.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214A
Deuteranopia (green-blind)
#082247
Tritanopia (blue-blind)
#2D1F2C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #311448;
/* rgb */ color: rgb(49, 20, 72);
/* oklch */ color: oklch(26.4% 0.094 306.7);
Tailwind
colors: {
  custom: {
    50: '#6b547b',
    500: '#311448',
    950: '#000000',
  },
}
SCSS
$custom: #311448;
$custom-light: #6b547b;
$custom-dark: #000000;
JSON
{
  "hex": "#311448",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 72
  },
  "hsl": {
    "h": 273.462,
    "s": 56.522,
    "l": 18.039
  },
  "oklch": {
    "l": 0.2643,
    "c": 0.09436,
    "h": 306.7
  },
  "luminance": 0.01621
}

Semantic roles & 50–950 ramp

primary
#311448
secondary
#588038
accent
#E0488B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #311448

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

Preview Lab → · Contrast checker → · Palette generator →

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