#331A68#331A68

#331A68 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.127 H 291.7°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#331A68
RGBrgb(51, 26, 104)
HSLhsl(259, 60%, 25%)
HSVhsv(259, 75%, 41%)
CMYKcmyk(51%, 75%, 0%, 59.2%)
CIE-LABlab(17.65, 32.17, -41.32)
CIE-LCHlch(17.65, 52.36, 307.90°)
OKLaboklab(30.43% 0.0471 -0.1185)
OKLCHoklch(30.43% 0.127 291.7)
XYZxyz(4.2326, 2.4419, 13.3423)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A68 #4F681A
analogous
#1A2868 #331A68 #5A1A68
triadic
#331A68 #68331A #1A6833
tetradic
#331A68 #681A28 #4F681A #1A685A
square
#331A68 #681A28 #4F681A #1A685A
split-complementary
#331A68 #685A1A #28681A
monochromatic
#0C0618 #1B0E37 #331A68 #4B2699 #6332CA

Accessibility & contrast

On white

14.11
#331A68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#331A68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A68
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A68#FFFFFF#000000##FFFFFF
##331A681.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002A66
Tritanopia (blue-blind)
#222E3F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331a68;
/* rgb */ color: rgb(51, 26, 104);
/* oklch */ color: oklch(30.4% 0.127 291.7);
Tailwind
colors: {
  custom: {
    50: '#715994',
    500: '#331a68',
    950: '#000000',
  },
}
SCSS
$custom: #331a68;
$custom-light: #715994;
$custom-dark: #000000;
JSON
{
  "hex": "#331a68",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 104
  },
  "hsl": {
    "h": 259.231,
    "s": 60,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30433,
    "c": 0.12749,
    "h": 291.7
  },
  "luminance": 0.02442
}

Semantic roles & 50–950 ramp

primary
#331A68
secondary
#809D40
accent
#E345B0
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331A68

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

Preview Lab → · Contrast checker → · Palette generator →

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