#301259#301259

#301259 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.118 H 297.1°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#301259
RGBrgb(48, 18, 89)
HSLhsl(265, 66%, 21%)
HSVhsv(265, 80%, 35%)
CMYKcmyk(46.1%, 79.8%, 0%, 65.1%)
CIE-LABlab(14.30, 31.48, -36.84)
CIE-LCHlch(14.30, 48.46, 310.51°)
OKLaboklab(27.53% 0.054 -0.1054)
OKLCHoklch(27.53% 0.118 297.1)
XYZxyz(3.2379, 1.7822, 9.6227)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301259 #3B5912
analogous
#121759 #301259 #531259
triadic
#301259 #593012 #125930
tetradic
#301259 #591217 #3B5912 #125953
square
#301259 #591217 #3B5912 #125953
split-complementary
#301259 #595312 #175912
monochromatic
#0E0519 #150826 #301259 #4B1C8C #6727BF

Accessibility & contrast

On white

15.48
#301259 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#301259 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301259
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301259#FFFFFF#000000##FFFFFF
##3012591.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.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: #301259;
/* rgb */ color: rgb(48, 18, 89);
/* oklch */ color: oklch(27.5% 0.118 297.1);
Tailwind
colors: {
  custom: {
    50: '#6d5389',
    500: '#301259',
    950: '#000000',
  },
}
SCSS
$custom: #301259;
$custom-light: #6d5389;
$custom-dark: #000000;
JSON
{
  "hex": "#301259",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 89
  },
  "hsl": {
    "h": 265.352,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27534,
    "c": 0.11844,
    "h": 297.1
  },
  "luminance": 0.01782
}

Semantic roles & 50–950 ramp

primary
#301259
secondary
#6B9235
accent
#E93FA1
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #301259

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

Preview Lab → · Contrast checker → · Palette generator →

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