#331259#331259

#331259 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.119 H 299.7°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#331259
RGBrgb(51, 18, 89)
HSLhsl(268, 66%, 21%)
HSVhsv(268, 80%, 35%)
CMYKcmyk(42.7%, 79.8%, 0%, 65.1%)
CIE-LABlab(14.72, 32.07, -36.14)
CIE-LCHlch(14.72, 48.32, 311.59°)
OKLaboklab(27.92% 0.059 -0.1032)
OKLCHoklch(27.92% 0.119 299.7)
XYZxyz(3.3843, 1.8577, 9.6295)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331259 #385912
analogous
#121559 #331259 #561259
triadic
#331259 #593312 #125933
tetradic
#331259 #591215 #385912 #125956
square
#331259 #591215 #385912 #125956
split-complementary
#331259 #595612 #155912
monochromatic
#0F0519 #160826 #331259 #501C8C #6D27BF

Accessibility & contrast

On white

15.31
#331259 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#331259 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331259
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331259#FFFFFF#000000##FFFFFF
##3312591.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255B
Deuteranopia (green-blind)
#002558
Tritanopia (blue-blind)
#2A2434
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331259;
/* rgb */ color: rgb(51, 18, 89);
/* oklch */ color: oklch(27.9% 0.119 299.7);
Tailwind
colors: {
  custom: {
    50: '#6f5389',
    500: '#331259',
    950: '#000000',
  },
}
SCSS
$custom: #331259;
$custom-light: #6f5389;
$custom-dark: #000000;
JSON
{
  "hex": "#331259",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 89
  },
  "hsl": {
    "h": 267.887,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27924,
    "c": 0.11888,
    "h": 299.7
  },
  "luminance": 0.01858
}

Semantic roles & 50–950 ramp

primary
#331259
secondary
#679235
accent
#E93F9A
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #331259

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

Preview Lab → · Contrast checker → · Palette generator →

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