#311255#311255

#311255 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.3% C 0.114 H 299.9°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#311255
RGBrgb(49, 18, 85)
HSLhsl(268, 65%, 20%)
HSVhsv(268, 79%, 33%)
CMYKcmyk(42.4%, 78.8%, 0%, 66.7%)
CIE-LABlab(14.07, 30.53, -34.51)
CIE-LCHlch(14.07, 46.08, 311.50°)
OKLaboklab(27.28% 0.0567 -0.0985)
OKLCHoklch(27.28% 0.114 299.9)
XYZxyz(3.1222, 1.7414, 8.7642)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311255 #365512
analogous
#121455 #311255 #521255
triadic
#311255 #553112 #125531
tetradic
#311255 #551214 #365512 #125552
square
#311255 #551214 #365512 #125552
split-complementary
#311255 #555212 #145512
monochromatic
#0F0519 #140722 #311255 #4E1D88 #6B27BA

Accessibility & contrast

On white

15.58
#311255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#311255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311255
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311255#FFFFFF#000000##FFFFFF
##3112551.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002457
Deuteranopia (green-blind)
#002354
Tritanopia (blue-blind)
#292332
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #311255;
/* rgb */ color: rgb(49, 18, 85);
/* oklch */ color: oklch(27.3% 0.114 299.9);
Tailwind
colors: {
  custom: {
    50: '#6d5385',
    500: '#311255',
    950: '#000000',
  },
}
SCSS
$custom: #311255;
$custom-light: #6d5385;
$custom-dark: #000000;
JSON
{
  "hex": "#311255",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 267.761,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27285,
    "c": 0.11365,
    "h": 299.9
  },
  "luminance": 0.01741
}

Semantic roles & 50–950 ramp

primary
#311255
secondary
#658E35
accent
#E8409A
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #311255

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

Preview Lab → · Contrast checker → · Palette generator →

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