#331E63#331E63

#331E63 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.6% C 0.115 H 292.2°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#331E63
RGBrgb(51, 30, 99)
HSLhsl(258, 53%, 25%)
HSVhsv(258, 70%, 39%)
CMYKcmyk(48.5%, 69.7%, 0%, 61.2%)
CIE-LABlab(18.07, 28.24, -37.35)
CIE-LCHlch(18.07, 46.83, 307.09°)
OKLaboklab(30.59% 0.0436 -0.1069)
OKLCHoklch(30.59% 0.115 292.2)
XYZxyz(4.0810, 2.5331, 12.0759)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E63 #4E631E
analogous
#1E2B63 #331E63 #551E63
triadic
#331E63 #63331E #1E6333
tetradic
#331E63 #631E2B #4E631E #1E6355
square
#331E63 #631E2B #4E631E #1E6355
split-complementary
#331E63 #63551E #2B631E
monochromatic
#0C0717 #1B1034 #331E63 #4B2C92 #633AC1

Accessibility & contrast

On white

13.94
#331E63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#331E63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E63
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E63#FFFFFF#000000##FFFFFF
##331E631.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D65
Deuteranopia (green-blind)
#002B62
Tritanopia (blue-blind)
#252F3D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331e63;
/* rgb */ color: rgb(51, 30, 99);
/* oklch */ color: oklch(30.6% 0.115 292.2);
Tailwind
colors: {
  custom: {
    50: '#6f5b90',
    500: '#331e63',
    950: '#000000',
  },
}
SCSS
$custom: #331e63;
$custom-light: #6f5b90;
$custom-dark: #000000;
JSON
{
  "hex": "#331e63",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 99
  },
  "hsl": {
    "h": 258.261,
    "s": 53.488,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3059,
    "c": 0.1154,
    "h": 292.2
  },
  "luminance": 0.02533
}

Semantic roles & 50–950 ramp

primary
#331E63
secondary
#7F9845
accent
#DD4BB0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #331E63

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

Preview Lab → · Contrast checker → · Palette generator →

#331E63 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva