#301558#301558

#301558 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.113 H 296.8°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#301558
RGBrgb(48, 21, 88)
HSLhsl(264, 61%, 21%)
HSVhsv(264, 76%, 35%)
CMYKcmyk(45.5%, 76.1%, 0%, 65.5%)
CIE-LABlab(14.79, 29.56, -35.38)
CIE-LCHlch(14.79, 46.10, 309.88°)
OKLaboklab(27.85% 0.051 -0.1011)
OKLCHoklch(27.85% 0.113 296.8)
XYZxyz(3.2481, 1.8692, 9.4203)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301558 #3D5815
analogous
#151C58 #301558 #521558
triadic
#301558 #583015 #155830
tetradic
#301558 #58151C #3D5815 #155852
square
#301558 #58151C #3D5815 #155852
split-complementary
#301558 #585215 #1C5815
monochromatic
#0D0619 #150927 #301558 #4B2189 #662DBB

Accessibility & contrast

On white

15.29
#301558 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#301558 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301558
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301558#FFFFFF#000000##FFFFFF
##3015581.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002457
Tritanopia (blue-blind)
#262635
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301558;
/* rgb */ color: rgb(48, 21, 88);
/* oklch */ color: oklch(27.8% 0.113 296.8);
Tailwind
colors: {
  custom: {
    50: '#6d5588',
    500: '#301558',
    950: '#000000',
  },
}
SCSS
$custom: #301558;
$custom-light: #6d5588;
$custom-dark: #000000;
JSON
{
  "hex": "#301558",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 88
  },
  "hsl": {
    "h": 264.179,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27849,
    "c": 0.11327,
    "h": 296.8
  },
  "luminance": 0.01869
}

Semantic roles & 50–950 ramp

primary
#301558
secondary
#6D9039
accent
#E543A4
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301558

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

Preview Lab → · Contrast checker → · Palette generator →

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