#311253#311253

#311253 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.111 H 300.9°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#311253
RGBrgb(49, 18, 83)
HSLhsl(269, 64%, 20%)
HSVhsv(269, 78%, 33%)
CMYKcmyk(41%, 78.3%, 0%, 67.5%)
CIE-LABlab(13.89, 29.96, -33.45)
CIE-LCHlch(13.89, 44.91, 311.85°)
OKLaboklab(27.1% 0.0571 -0.0954)
OKLCHoklch(27.1% 0.111 300.9)
XYZxyz(3.0439, 1.7101, 8.3517)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311253 #345312
analogous
#121453 #311253 #511253
triadic
#311253 #533112 #125331
tetradic
#311253 #531214 #345312 #125351
square
#311253 #531214 #345312 #125351
split-complementary
#311253 #535112 #145312
monochromatic
#0F0519 #130721 #311253 #4F1D85 #6C28B8

Accessibility & contrast

On white

15.65
#311253 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#311253 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311253
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311253#FFFFFF#000000##FFFFFF
##3112531.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002355
Deuteranopia (green-blind)
#002352
Tritanopia (blue-blind)
#292231
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #311253;
/* rgb */ color: rgb(49, 18, 83);
/* oklch */ color: oklch(27.1% 0.111 300.9);
Tailwind
colors: {
  custom: {
    50: '#6d5384',
    500: '#311253',
    950: '#000000',
  },
}
SCSS
$custom: #311253;
$custom-light: #6d5384;
$custom-dark: #000000;
JSON
{
  "hex": "#311253",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 83
  },
  "hsl": {
    "h": 268.615,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.271,
    "c": 0.11119,
    "h": 300.9
  },
  "luminance": 0.0171
}

Semantic roles & 50–950 ramp

primary
#311253
secondary
#628C35
accent
#E74098
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #311253

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

Preview Lab → · Contrast checker → · Palette generator →

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