#331F64#331F64

#331F64 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.8% C 0.115 H 291.5°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#331F64
RGBrgb(51, 31, 100)
HSLhsl(257, 53%, 26%)
HSVhsv(257, 69%, 39%)
CMYKcmyk(49%, 69%, 0%, 60.8%)
CIE-LABlab(18.38, 27.94, -37.50)
CIE-LCHlch(18.38, 46.77, 306.68°)
OKLaboklab(30.84% 0.0423 -0.1073)
OKLCHoklch(30.84% 0.115 291.5)
XYZxyz(4.1548, 2.6037, 12.3378)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F64 #50641F
analogous
#1F2D64 #331F64 #551F64
triadic
#331F64 #64331F #1F6433
tetradic
#331F64 #641F2D #50641F #1F6455
square
#331F64 #641F2D #50641F #1F6455
split-complementary
#331F64 #64551F #2D641F
monochromatic
#0C0717 #1B1135 #331F64 #4B2D93 #633CC1

Accessibility & contrast

On white

13.81
#331F64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#331F64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331F64
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F64#FFFFFF#000000##FFFFFF
##331F641.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E66
Deuteranopia (green-blind)
#002B63
Tritanopia (blue-blind)
#242F3E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #331f64;
/* rgb */ color: rgb(51, 31, 100);
/* oklch */ color: oklch(30.8% 0.115 291.5);
Tailwind
colors: {
  custom: {
    50: '#705c91',
    500: '#331f64',
    950: '#000000',
  },
}
SCSS
$custom: #331f64;
$custom-light: #705c91;
$custom-dark: #000000;
JSON
{
  "hex": "#331f64",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 100
  },
  "hsl": {
    "h": 257.391,
    "s": 52.672,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30843,
    "c": 0.11532,
    "h": 291.5
  },
  "luminance": 0.02604
}

Semantic roles & 50–950 ramp

primary
#331F64
secondary
#819846
accent
#DC4CB2
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040D
muted
#7B797D

Preview Lab

Preview with #331F64

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

Preview Lab → · Contrast checker → · Palette generator →

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