#331458#331458

#331458 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.115 H 299.7°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#331458
RGBrgb(51, 20, 88)
HSLhsl(267, 63%, 21%)
HSVhsv(267, 77%, 35%)
CMYKcmyk(42%, 77.3%, 0%, 65.5%)
CIE-LABlab(15.00, 30.74, -35.01)
CIE-LCHlch(15.00, 46.59, 311.29°)
OKLaboklab(28.09% 0.057 -0.0999)
OKLCHoklch(28.09% 0.115 299.7)
XYZxyz(3.3764, 1.9087, 9.4211)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331458 #395814
analogous
#141758 #331458 #551458
triadic
#331458 #583314 #145833
tetradic
#331458 #581417 #395814 #145855
square
#331458 #581417 #395814 #145855
split-complementary
#331458 #585514 #175814
monochromatic
#0E0619 #160926 #331458 #501F8A #6D2BBC

Accessibility & contrast

On white

15.20
#331458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#331458 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331458
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331458#FFFFFF#000000##FFFFFF
##3314581.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#2A2534
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331458;
/* rgb */ color: rgb(51, 20, 88);
/* oklch */ color: oklch(28.1% 0.115 299.7);
Tailwind
colors: {
  custom: {
    50: '#6f5588',
    500: '#331458',
    950: '#000000',
  },
}
SCSS
$custom: #331458;
$custom-light: #6f5588;
$custom-dark: #000000;
JSON
{
  "hex": "#331458",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 88
  },
  "hsl": {
    "h": 267.353,
    "s": 62.963,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28093,
    "c": 0.11506,
    "h": 299.7
  },
  "luminance": 0.01909
}

Semantic roles & 50–950 ramp

primary
#331458
secondary
#689038
accent
#E6429B
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #331458

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

Preview Lab → · Contrast checker → · Palette generator →

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