#301159#301159

#301159 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.120 H 297.4°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#301159
RGBrgb(48, 17, 89)
HSLhsl(266, 68%, 21%)
HSVhsv(266, 81%, 35%)
CMYKcmyk(46.1%, 80.9%, 0%, 65.1%)
CIE-LABlab(14.12, 32.00, -37.14)
CIE-LCHlch(14.12, 49.02, 310.75°)
OKLaboklab(27.41% 0.055 -0.1063)
OKLCHoklch(27.41% 0.12 297.4)
XYZxyz(3.2221, 1.7505, 9.6174)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301159 #3A5911
analogous
#111659 #301159 #541159
triadic
#301159 #593011 #115930
tetradic
#301159 #591116 #3A5911 #115954
square
#301159 #591116 #3A5911 #115954
split-complementary
#301159 #595411 #165911
monochromatic
#0E051A #140726 #301159 #4C1B8C #6725C0

Accessibility & contrast

On white

15.55
#301159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#301159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301159
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301159#FFFFFF#000000##FFFFFF
##3011591.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245B
Deuteranopia (green-blind)
#002358
Tritanopia (blue-blind)
#252434
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #301159;
/* rgb */ color: rgb(48, 17, 89);
/* oklch */ color: oklch(27.4% 0.120 297.4);
Tailwind
colors: {
  custom: {
    50: '#6d5389',
    500: '#301159',
    950: '#000000',
  },
}
SCSS
$custom: #301159;
$custom-light: #6d5389;
$custom-dark: #000000;
JSON
{
  "hex": "#301159",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 265.833,
    "s": 67.925,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27407,
    "c": 0.11966,
    "h": 297.4
  },
  "luminance": 0.01751
}

Semantic roles & 50–950 ramp

primary
#301159
secondary
#699234
accent
#EB3DA0
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #301159

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

Preview Lab → · Contrast checker → · Palette generator →

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