#331265#331265

#331265 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.133 H 294.6°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#331265
RGBrgb(51, 18, 101)
HSLhsl(264, 70%, 23%)
HSVhsv(264, 82%, 40%)
CMYKcmyk(49.5%, 82.2%, 0%, 60.4%)
CIE-LABlab(15.88, 35.48, -42.24)
CIE-LCHlch(15.88, 55.17, 310.03°)
OKLaboklab(29.09% 0.0555 -0.1211)
OKLCHoklch(29.09% 0.133 294.6)
XYZxyz(3.9299, 2.0759, 12.5030)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331265 #446512
analogous
#121B65 #331265 #5C1265
triadic
#331265 #653312 #126533
tetradic
#331265 #65121B #446512 #12655C
square
#331265 #65121B #446512 #12655C
split-complementary
#331265 #655C12 #1B6512
monochromatic
#0D051A #190931 #331265 #4D1B99 #6725CD

Accessibility & contrast

On white

14.84
#331265 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#331265 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331265
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331265#FFFFFF#000000##FFFFFF
##3312651.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002867
Deuteranopia (green-blind)
#002663
Tritanopia (blue-blind)
#24293B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331265;
/* rgb */ color: rgb(51, 18, 101);
/* oklch */ color: oklch(29.1% 0.133 294.6);
Tailwind
colors: {
  custom: {
    50: '#715492',
    500: '#331265',
    950: '#000000',
  },
}
SCSS
$custom: #331265;
$custom-light: #715492;
$custom-dark: #000000;
JSON
{
  "hex": "#331265",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 101
  },
  "hsl": {
    "h": 263.855,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29094,
    "c": 0.13324,
    "h": 294.6
  },
  "luminance": 0.02076
}

Semantic roles & 50–950 ramp

primary
#331265
secondary
#749D36
accent
#ED3BA6
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331265

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

Preview Lab → · Contrast checker → · Palette generator →

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