#31154F#31154F

#31154F is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.102 H 302.2°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#31154F
RGBrgb(49, 21, 79)
HSLhsl(269, 58%, 20%)
HSVhsv(269, 73%, 31%)
CMYKcmyk(38%, 73.4%, 0%, 69%)
CIE-LABlab(14.14, 27.15, -30.31)
CIE-LCHlch(14.14, 40.69, 311.85°)
OKLaboklab(27.17% 0.0542 -0.0862)
OKLCHoklch(27.17% 0.102 302.2)
XYZxyz(2.9457, 1.7538, 7.5789)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31154F #334F15
analogous
#15164F #31154F #4E154F
triadic
#31154F #4F3115 #154F31
tetradic
#31154F #4F1516 #334F15 #154F4E
square
#31154F #4F1516 #334F15 #154F4E
split-complementary
#31154F #4F4E15 #164F15
monochromatic
#0F0618 #13081F #31154F #4F227F #6D2FB0

Accessibility & contrast

On white

15.55
#31154F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#31154F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31154F
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31154F#FFFFFF#000000##FFFFFF
##31154F1.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00244E
Tritanopia (blue-blind)
#2B2230
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #31154f;
/* rgb */ color: rgb(49, 21, 79);
/* oklch */ color: oklch(27.2% 0.102 302.2);
Tailwind
colors: {
  custom: {
    50: '#6c5481',
    500: '#31154f',
    950: '#000000',
  },
}
SCSS
$custom: #31154f;
$custom-light: #6c5481;
$custom-dark: #000000;
JSON
{
  "hex": "#31154f",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 79
  },
  "hsl": {
    "h": 268.966,
    "s": 58,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27171,
    "c": 0.10183,
    "h": 302.2
  },
  "luminance": 0.01754
}

Semantic roles & 50–950 ramp

primary
#31154F
secondary
#618739
accent
#E14797
background
#F6F5F7
surface
#ECE8EE
border
#C7C4C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #31154F

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

Preview Lab → · Contrast checker → · Palette generator →

#31154F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva