#301454#301454

#301454 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.110 H 298.9°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#301454
RGBrgb(48, 20, 84)
HSLhsl(266, 62%, 20%)
HSVhsv(266, 76%, 33%)
CMYKcmyk(42.9%, 76.2%, 0%, 67.1%)
CIE-LABlab(14.22, 28.94, -33.59)
CIE-LCHlch(14.22, 44.34, 310.75°)
OKLaboklab(27.34% 0.053 -0.0959)
OKLCHoklch(27.34% 0.11 298.9)
XYZxyz(3.0689, 1.7687, 8.5655)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301454 #385414
analogous
#141854 #301454 #501454
triadic
#301454 #543014 #145430
tetradic
#301454 #541418 #385414 #145450
square
#301454 #541418 #385414 #145450
split-complementary
#301454 #545014 #185414
monochromatic
#0E0619 #140823 #301454 #4C2085 #682CB7

Accessibility & contrast

On white

15.51
#301454 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#301454 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301454
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301454#FFFFFF#000000##FFFFFF
##3014541.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301454;
/* rgb */ color: rgb(48, 20, 84);
/* oklch */ color: oklch(27.3% 0.110 298.9);
Tailwind
colors: {
  custom: {
    50: '#6c5485',
    500: '#301454',
    950: '#000000',
  },
}
SCSS
$custom: #301454;
$custom-light: #6c5485;
$custom-dark: #000000;
JSON
{
  "hex": "#301454",
  "rgb": {
    "r": 48,
    "g": 20,
    "b": 84
  },
  "hsl": {
    "h": 266.25,
    "s": 61.538,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27336,
    "c": 0.10952,
    "h": 298.9
  },
  "luminance": 0.01769
}

Semantic roles & 50–950 ramp

primary
#301454
secondary
#678C38
accent
#E5439E
background
#F6F4F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301454

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

Preview Lab → · Contrast checker → · Palette generator →

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