#311248#311248

#311248 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.098 H 307.2°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#311248
RGBrgb(49, 18, 72)
HSLhsl(274, 60%, 18%)
HSVhsv(274, 75%, 28%)
CMYKcmyk(31.9%, 75%, 0%, 71.8%)
CIE-LABlab(12.94, 26.90, -27.41)
CIE-LCHlch(12.94, 38.40, 314.46°)
OKLaboklab(26.13% 0.059 -0.0776)
OKLCHoklch(26.13% 0.098 307.2)
XYZxyz(2.6524, 1.5535, 6.2898)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311248 #294812
analogous
#161248 #311248 #481244
triadic
#311248 #483112 #124831
tetradic
#311248 #481612 #294812 #124448
square
#311248 #481612 #294812 #124448
split-complementary
#311248 #444812 #124816
monochromatic
#110618 #110618 #311248 #521E79 #742AAA

Accessibility & contrast

On white

16.02
#311248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311248
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311248#FFFFFF#000000##FFFFFF
##3112481.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204A
Deuteranopia (green-blind)
#062247
Tritanopia (blue-blind)
#2D1E2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #311248;
/* rgb */ color: rgb(49, 18, 72);
/* oklch */ color: oklch(26.1% 0.098 307.2);
Tailwind
colors: {
  custom: {
    50: '#6c527b',
    500: '#311248',
    950: '#000000',
  },
}
SCSS
$custom: #311248;
$custom-light: #6c527b;
$custom-dark: #000000;
JSON
{
  "hex": "#311248",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 274.444,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26132,
    "c": 0.09753,
    "h": 307.2
  },
  "luminance": 0.01553
}

Semantic roles & 50–950 ramp

primary
#311248
secondary
#558135
accent
#E34588
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #311248

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

Preview Lab → · Contrast checker → · Palette generator →

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