#331462#331462

#331462 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.127 H 295.3°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#331462
RGBrgb(51, 20, 98)
HSLhsl(264, 66%, 23%)
HSVhsv(264, 80%, 38%)
CMYKcmyk(48%, 79.6%, 0%, 61.6%)
CIE-LABlab(15.93, 33.62, -40.18)
CIE-LCHlch(15.93, 52.39, 309.93°)
OKLaboklab(29.04% 0.0545 -0.1151)
OKLCHoklch(29.04% 0.127 295.3)
XYZxyz(3.8194, 2.0859, 11.7543)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331462 #436214
analogous
#141C62 #331462 #5A1462
triadic
#331462 #623314 #146233
tetradic
#331462 #62141C #436214 #14625A
square
#331462 #62141C #436214 #14625A
split-complementary
#331462 #625A14 #1C6214
monochromatic
#0D0519 #190A2F #331462 #4D1E95 #6829C8

Accessibility & contrast

On white

14.82
#331462 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331462
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331462#FFFFFF#000000##FFFFFF
##3314621.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002864
Deuteranopia (green-blind)
#002660
Tritanopia (blue-blind)
#26293A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331462;
/* rgb */ color: rgb(51, 20, 98);
/* oklch */ color: oklch(29.0% 0.127 295.3);
Tailwind
colors: {
  custom: {
    50: '#70558f',
    500: '#331462',
    950: '#000000',
  },
}
SCSS
$custom: #331462;
$custom-light: #70558f;
$custom-dark: #000000;
JSON
{
  "hex": "#331462",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 98
  },
  "hsl": {
    "h": 263.846,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.2904,
    "c": 0.12736,
    "h": 295.3
  },
  "luminance": 0.02086
}

Semantic roles & 50–950 ramp

primary
#331462
secondary
#739938
accent
#E93FA5
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331462

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

Preview Lab → · Contrast checker → · Palette generator →

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