#331275#331275

#331275 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.152 H 289.2°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#331275
RGBrgb(51, 18, 117)
HSLhsl(260, 73%, 26%)
HSVhsv(260, 85%, 46%)
CMYKcmyk(56.4%, 84.6%, 0%, 54.1%)
CIE-LABlab(17.56, 40.07, -49.93)
CIE-LCHlch(17.56, 64.02, 308.75°)
OKLaboklab(30.76% 0.0499 -0.1436)
OKLCHoklch(30.76% 0.152 289.2)
XYZxyz(4.7915, 2.4205, 17.0409)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331275 #547512
analogous
#122375 #331275 #651275
triadic
#331275 #753312 #127533
tetradic
#331275 #751223 #547512 #127565
square
#331275 #751223 #547512 #127565
split-complementary
#331275 #756512 #237512
monochromatic
#0C041B #1C0A40 #331275 #4A1AAA #6224DD

Accessibility & contrast

On white

14.15
#331275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#331275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331275
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331275#FFFFFF#000000##FFFFFF
##3312751.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D78
Deuteranopia (green-blind)
#002973
Tritanopia (blue-blind)
#183044
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331275;
/* rgb */ color: rgb(51, 18, 117);
/* oklch */ color: oklch(30.8% 0.152 289.2);
Tailwind
colors: {
  custom: {
    50: '#74559e',
    500: '#331275',
    950: '#000000',
  },
}
SCSS
$custom: #331275;
$custom-light: #74559e;
$custom-dark: #000000;
JSON
{
  "hex": "#331275",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 260,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30763,
    "c": 0.15205,
    "h": 289.2
  },
  "luminance": 0.02421
}

Semantic roles & 50–950 ramp

primary
#331275
secondary
#85AC37
accent
#F038B3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331275

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

Preview Lab → · Contrast checker → · Palette generator →

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