#301150#301150

#301150 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.109 H 301.8°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#301150
RGBrgb(48, 17, 80)
HSLhsl(270, 65%, 19%)
HSVhsv(270, 79%, 31%)
CMYKcmyk(40%, 78.8%, 0%, 68.6%)
CIE-LABlab(13.28, 29.43, -32.39)
CIE-LCHlch(13.28, 43.76, 312.26°)
OKLaboklab(26.56% 0.0573 -0.0923)
OKLCHoklch(26.56% 0.109 301.8)
XYZxyz(2.8670, 1.6085, 7.7473)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301150 #315011
analogous
#111250 #301150 #501150
triadic
#301150 #503011 #115030
tetradic
#301150 #501112 #315011 #115050
square
#301150 #501112 #315011 #115050
split-complementary
#301150 #505011 #125011
monochromatic
#0F0519 #12061E #301150 #4E1C82 #6D26B5

Accessibility & contrast

On white

15.89
#301150 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#301150 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301150
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301150#FFFFFF#000000##FFFFFF
##3011501.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002252
Deuteranopia (green-blind)
#00224F
Tritanopia (blue-blind)
#29202F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #301150;
/* rgb */ color: rgb(48, 17, 80);
/* oklch */ color: oklch(26.6% 0.109 301.8);
Tailwind
colors: {
  custom: {
    50: '#6c5282',
    500: '#301150',
    950: '#000000',
  },
}
SCSS
$custom: #301150;
$custom-light: #6c5282;
$custom-dark: #000000;
JSON
{
  "hex": "#301150",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 80
  },
  "hsl": {
    "h": 269.524,
    "s": 64.948,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26555,
    "c": 0.10864,
    "h": 301.8
  },
  "luminance": 0.01608
}

Semantic roles & 50–950 ramp

primary
#301150
secondary
#5F8933
accent
#E84095
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #301150

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

Preview Lab → · Contrast checker → · Palette generator →

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