#301759#301759

#301759 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.112 H 295.7°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#301759
RGBrgb(48, 23, 89)
HSLhsl(263, 59%, 22%)
HSVhsv(263, 74%, 35%)
CMYKcmyk(46.1%, 74.2%, 0%, 65.1%)
CIE-LABlab(15.29, 28.71, -35.23)
CIE-LCHlch(15.29, 45.45, 309.18°)
OKLaboklab(28.24% 0.0485 -0.1007)
OKLCHoklch(28.24% 0.112 295.7)
XYZxyz(3.3280, 1.9624, 9.6527)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301759 #405917
analogous
#171F59 #301759 #511759
triadic
#301759 #593017 #175930
tetradic
#301759 #59171F #405917 #175951
square
#301759 #59171F #405917 #175951
split-complementary
#301759 #595117 #1F5917
monochromatic
#0D0618 #160A28 #301759 #4A248A #6430BA

Accessibility & contrast

On white

15.08
#301759 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#301759 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301759
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301759#FFFFFF#000000##FFFFFF
##3017591.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275B
Deuteranopia (green-blind)
#002558
Tritanopia (blue-blind)
#252736
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #301759;
/* rgb */ color: rgb(48, 23, 89);
/* oklch */ color: oklch(28.2% 0.112 295.7);
Tailwind
colors: {
  custom: {
    50: '#6d5688',
    500: '#301759',
    950: '#000000',
  },
}
SCSS
$custom: #301759;
$custom-light: #6d5688;
$custom-dark: #000000;
JSON
{
  "hex": "#301759",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 89
  },
  "hsl": {
    "h": 262.727,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28235,
    "c": 0.1118,
    "h": 295.7
  },
  "luminance": 0.01962
}

Semantic roles & 50–950 ramp

primary
#301759
secondary
#70903C
accent
#E246A7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301759

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

Preview Lab → · Contrast checker → · Palette generator →

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