#331875#331875

#331875 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.146 H 288.1°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#331875
RGBrgb(51, 24, 117)
HSLhsl(257, 66%, 28%)
HSVhsv(257, 79%, 46%)
CMYKcmyk(56.4%, 79.5%, 0%, 54.1%)
CIE-LABlab(18.55, 37.21, -48.30)
CIE-LCHlch(18.55, 60.97, 307.61°)
OKLaboklab(31.45% 0.0455 -0.1389)
OKLCHoklch(31.45% 0.146 288.1)
XYZxyz(4.9018, 2.6412, 17.0777)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331875 #5A7518
analogous
#182C75 #331875 #611875
triadic
#331875 #753318 #187533
tetradic
#331875 #75182C #5A7518 #187561
square
#331875 #75182C #5A7518 #187561
split-complementary
#331875 #756118 #2C7518
monochromatic
#0B0519 #1D0E42 #331875 #4922A8 #6232D5

Accessibility & contrast

On white

13.74
#331875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#331875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331875
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331875#FFFFFF#000000##FFFFFF
##3318751.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F78
Deuteranopia (green-blind)
#002B73
Tritanopia (blue-blind)
#183246
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #331875;
/* rgb */ color: rgb(51, 24, 117);
/* oklch */ color: oklch(31.5% 0.146 288.1);
Tailwind
colors: {
  custom: {
    50: '#73589e',
    500: '#331875',
    950: '#000000',
  },
}
SCSS
$custom: #331875;
$custom-light: #73589e;
$custom-dark: #000000;
JSON
{
  "hex": "#331875",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 257.419,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31452,
    "c": 0.14618,
    "h": 288.1
  },
  "luminance": 0.02641
}

Semantic roles & 50–950 ramp

primary
#331875
secondary
#8BAA3F
accent
#E93FB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331875

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

Preview Lab → · Contrast checker → · Palette generator →

#331875 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva