#331365#331365

#331365 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.132 H 294.4°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#331365
RGBrgb(51, 19, 101)
HSLhsl(263, 68%, 24%)
HSVhsv(263, 81%, 40%)
CMYKcmyk(49.5%, 81.2%, 0%, 60.4%)
CIE-LABlab(16.05, 34.99, -41.97)
CIE-LCHlch(16.05, 54.64, 309.82°)
OKLaboklab(29.21% 0.0546 -0.1203)
OKLCHoklch(29.21% 0.132 294.4)
XYZxyz(3.9464, 2.1090, 12.5085)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331365 #456513
analogous
#131C65 #331365 #5C1365
triadic
#331365 #653313 #136533
tetradic
#331365 #65131C #456513 #13655C
square
#331365 #65131C #456513 #13655C
split-complementary
#331365 #655C13 #1C6513
monochromatic
#0D051A #190931 #331365 #4D1D99 #6726CC

Accessibility & contrast

On white

14.77
#331365 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331365
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331365#FFFFFF#000000##FFFFFF
##3313651.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002663
Tritanopia (blue-blind)
#242A3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331365;
/* rgb */ color: rgb(51, 19, 101);
/* oklch */ color: oklch(29.2% 0.132 294.4);
Tailwind
colors: {
  custom: {
    50: '#715592',
    500: '#331365',
    950: '#000000',
  },
}
SCSS
$custom: #331365;
$custom-light: #715592;
$custom-dark: #000000;
JSON
{
  "hex": "#331365",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 101
  },
  "hsl": {
    "h": 263.415,
    "s": 68.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29212,
    "c": 0.13215,
    "h": 294.4
  },
  "luminance": 0.02109
}

Semantic roles & 50–950 ramp

primary
#331365
secondary
#759D37
accent
#EB3DA7
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331365

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

Preview Lab → · Contrast checker → · Palette generator →

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