#301545#301545

#301545 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.088 H 307.3°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#301545
RGBrgb(48, 21, 69)
HSLhsl(274, 53%, 18%)
HSVhsv(274, 70%, 27%)
CMYKcmyk(30.4%, 69.6%, 0%, 72.9%)
CIE-LABlab(13.20, 24.05, -24.92)
CIE-LCHlch(13.20, 34.64, 313.98°)
OKLaboklab(26.21% 0.0536 -0.0704)
OKLCHoklch(26.21% 0.088 307.3)
XYZxyz(2.5610, 1.5944, 5.8019)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301545 #2A4515
analogous
#181545 #301545 #451542
triadic
#301545 #453015 #154530
tetradic
#301545 #451815 #2A4515 #154245
square
#301545 #451815 #2A4515 #154245
split-complementary
#301545 #424515 #154518
monochromatic
#100717 #100717 #301545 #512374 #7132A3

Accessibility & contrast

On white

15.92
#301545 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301545
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301545#FFFFFF#000000##FFFFFF
##3015451.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012147
Deuteranopia (green-blind)
#0C2244
Tritanopia (blue-blind)
#2D1F2A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #301545;
/* rgb */ color: rgb(48, 21, 69);
/* oklch */ color: oklch(26.2% 0.088 307.3);
Tailwind
colors: {
  custom: {
    50: '#6a5479',
    500: '#301545',
    950: '#000000',
  },
}
SCSS
$custom: #301545;
$custom-light: #6a5479;
$custom-dark: #000000;
JSON
{
  "hex": "#301545",
  "rgb": {
    "r": 48,
    "g": 21,
    "b": 69
  },
  "hsl": {
    "h": 273.75,
    "s": 53.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26206,
    "c": 0.08845,
    "h": 307.3
  },
  "luminance": 0.01594
}

Semantic roles & 50–950 ramp

primary
#301545
secondary
#577D39
accent
#DD4B8B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #301545

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

Preview Lab → · Contrast checker → · Palette generator →

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