#301960#301960

#301960 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.2% C 0.118 H 292.3°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#301960
RGBrgb(48, 25, 96)
HSLhsl(259, 59%, 24%)
HSVhsv(259, 74%, 38%)
CMYKcmyk(50%, 74%, 0%, 62.4%)
CIE-LABlab(16.35, 29.69, -38.19)
CIE-LCHlch(16.35, 48.37, 307.86°)
OKLaboklab(29.19% 0.045 -0.1094)
OKLCHoklch(29.19% 0.118 292.3)
XYZxyz(3.6773, 2.1680, 11.2888)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301960 #496019
analogous
#192560 #301960 #531960
triadic
#301960 #603019 #196030
tetradic
#301960 #601925 #496019 #196053
square
#301960 #601925 #496019 #196053
split-complementary
#301960 #605319 #256019
monochromatic
#0C0618 #180C2F #301960 #482691 #6132C1

Accessibility & contrast

On white

14.65
#301960 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#301960 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301960
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301960#FFFFFF#000000##FFFFFF
##3019601.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002962
Deuteranopia (green-blind)
#00275F
Tritanopia (blue-blind)
#212B3A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #301960;
/* rgb */ color: rgb(48, 25, 96);
/* oklch */ color: oklch(29.2% 0.118 292.3);
Tailwind
colors: {
  custom: {
    50: '#6e588e',
    500: '#301960',
    950: '#000000',
  },
}
SCSS
$custom: #301960;
$custom-light: #6e588e;
$custom-dark: #000000;
JSON
{
  "hex": "#301960",
  "rgb": {
    "r": 48,
    "g": 25,
    "b": 96
  },
  "hsl": {
    "h": 259.437,
    "s": 58.678,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29188,
    "c": 0.11829,
    "h": 292.3
  },
  "luminance": 0.02168
}

Semantic roles & 50–950 ramp

primary
#301960
secondary
#7A963F
accent
#E246AF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #301960

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

Preview Lab → · Contrast checker → · Palette generator →

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