#331E62#331E62

#331E62 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.5% C 0.114 H 292.5°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#331E62
RGBrgb(51, 30, 98)
HSLhsl(259, 53%, 25%)
HSVhsv(259, 69%, 38%)
CMYKcmyk(48%, 69.4%, 0%, 61.6%)
CIE-LABlab(17.98, 27.93, -36.83)
CIE-LCHlch(17.98, 46.22, 307.17°)
OKLaboklab(30.5% 0.0437 -0.1053)
OKLCHoklch(30.5% 0.114 292.5)
XYZxyz(4.0335, 2.5141, 11.8256)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E62 #4D621E
analogous
#1E2B62 #331E62 #551E62
triadic
#331E62 #62331E #1E6233
tetradic
#331E62 #621E2B #4D621E #1E6255
square
#331E62 #621E2B #4D621E #1E6255
split-complementary
#331E62 #62551E #2B621E
monochromatic
#0C0717 #1B1033 #331E62 #4B2C91 #643BC0

Accessibility & contrast

On white

13.97
#331E62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#331E62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E62
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E62#FFFFFF#000000##FFFFFF
##331E621.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D64
Deuteranopia (green-blind)
#002B61
Tritanopia (blue-blind)
#252E3D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331e62;
/* rgb */ color: rgb(51, 30, 98);
/* oklch */ color: oklch(30.5% 0.114 292.5);
Tailwind
colors: {
  custom: {
    50: '#6f5b8f',
    500: '#331e62',
    950: '#000000',
  },
}
SCSS
$custom: #331e62;
$custom-light: #6f5b8f;
$custom-dark: #000000;
JSON
{
  "hex": "#331e62",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 98
  },
  "hsl": {
    "h": 258.529,
    "s": 53.125,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30501,
    "c": 0.11403,
    "h": 292.5
  },
  "luminance": 0.02514
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #331E62

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

Preview Lab → · Contrast checker → · Palette generator →

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