#331F67#331F67

#331F67 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.1% C 0.119 H 290.5°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#331F67
RGBrgb(51, 31, 103)
HSLhsl(257, 54%, 26%)
HSVhsv(257, 70%, 40%)
CMYKcmyk(50.5%, 69.9%, 0%, 59.6%)
CIE-LABlab(18.64, 28.89, -39.05)
CIE-LCHlch(18.64, 48.58, 306.49°)
OKLaboklab(31.11% 0.0419 -0.1118)
OKLCHoklch(31.11% 0.119 290.5)
XYZxyz(4.3027, 2.6629, 13.1166)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331F67 #53671F
analogous
#1F2F67 #331F67 #571F67
triadic
#331F67 #67331F #1F6733
tetradic
#331F67 #671F2F #53671F #1F6757
square
#331F67 #671F2F #53671F #1F6757
split-complementary
#331F67 #67571F #2F671F
monochromatic
#0C0718 #1C1138 #331F67 #4A2D96 #623CC4

Accessibility & contrast

On white

13.70
#331F67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#331F67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331F67
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331F67#FFFFFF#000000##FFFFFF
##331F671.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F69
Deuteranopia (green-blind)
#002C66
Tritanopia (blue-blind)
#223140
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #331f67;
/* rgb */ color: rgb(51, 31, 103);
/* oklch */ color: oklch(31.1% 0.119 290.5);
Tailwind
colors: {
  custom: {
    50: '#705c93',
    500: '#331f67',
    950: '#000000',
  },
}
SCSS
$custom: #331f67;
$custom-light: #705c93;
$custom-dark: #000000;
JSON
{
  "hex": "#331f67",
  "rgb": {
    "r": 51,
    "g": 31,
    "b": 103
  },
  "hsl": {
    "h": 256.667,
    "s": 53.731,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31111,
    "c": 0.11943,
    "h": 290.5
  },
  "luminance": 0.02663
}

Semantic roles & 50–950 ramp

primary
#331F67
secondary
#849B46
accent
#DD4BB4
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #331F67

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

Preview Lab → · Contrast checker → · Palette generator →

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