#301451#301451

#301451 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.106 H 300.4°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#301451
RGBrgb(48, 20, 81)
HSLhsl(268, 60%, 20%)
HSVhsv(268, 75%, 32%)
CMYKcmyk(40.7%, 75.3%, 0%, 68.2%)
CIE-LABlab(13.96, 28.07, -31.97)
CIE-LCHlch(13.96, 42.55, 311.28°)
OKLaboklab(27.07% 0.0535 -0.0911)
OKLCHoklch(27.07% 0.106 300.4)
XYZxyz(2.9539, 1.7227, 7.9599)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301451 #355114
analogous
#141751 #301451 #4F1451
triadic
#301451 #513014 #145130
tetradic
#301451 #511417 #355114 #14514F
square
#301451 #511417 #355114 #14514F
split-complementary
#301451 #514F14 #175114
monochromatic
#0F0619 #130820 #301451 #4D2082 #6A2CB3

Accessibility & contrast

On white

15.62
#301451 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#301451 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301451
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301451#FFFFFF#000000##FFFFFF
##3014511.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002353
Deuteranopia (green-blind)
#002350
Tritanopia (blue-blind)
#292230
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #301451;
/* rgb */ color: rgb(48, 20, 81);
/* oklch */ color: oklch(27.1% 0.106 300.4);
Tailwind
colors: {
  custom: {
    50: '#6c5482',
    500: '#301451',
    950: '#000000',
  },
}
SCSS
$custom: #301451;
$custom-light: #6c5482;
$custom-dark: #000000;
JSON
{
  "hex": "#301451",
  "rgb": {
    "r": 48,
    "g": 20,
    "b": 81
  },
  "hsl": {
    "h": 267.541,
    "s": 60.396,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27065,
    "c": 0.10569,
    "h": 300.4
  },
  "luminance": 0.01723
}

Semantic roles & 50–950 ramp

primary
#301451
secondary
#648938
accent
#E4449A
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #301451

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

Preview Lab → · Contrast checker → · Palette generator →

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