#301254#301254

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

Color values

HEX#301254
RGBrgb(48, 18, 84)
HSLhsl(267, 65%, 20%)
HSVhsv(267, 79%, 33%)
CMYKcmyk(42.9%, 78.6%, 0%, 67.1%)
CIE-LABlab(13.83, 30.04, -34.22)
CIE-LCHlch(13.83, 45.54, 311.28°)
OKLaboklab(27.06% 0.0552 -0.0977)
OKLCHoklch(27.06% 0.112 299.5)
XYZxyz(3.0351, 1.7010, 8.5542)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301254 #365412
analogous
#121554 #301254 #511254
triadic
#301254 #543012 #125430
tetradic
#301254 #541215 #365412 #125451
square
#301254 #541215 #365412 #125451
split-complementary
#301254 #545112 #155412
monochromatic
#0E0519 #130722 #301254 #4D1D86 #6A28B9

Accessibility & contrast

On white

15.67
#301254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301254
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301254#FFFFFF#000000##FFFFFF
##3012541.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002356
Deuteranopia (green-blind)
#002353
Tritanopia (blue-blind)
#282231
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #301254;
/* rgb */ color: rgb(48, 18, 84);
/* oklch */ color: oklch(27.1% 0.112 299.5);
Tailwind
colors: {
  custom: {
    50: '#6c5385',
    500: '#301254',
    950: '#000000',
  },
}
SCSS
$custom: #301254;
$custom-light: #6c5385;
$custom-dark: #000000;
JSON
{
  "hex": "#301254",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 267.273,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.27059,
    "c": 0.11225,
    "h": 299.5
  },
  "luminance": 0.01701
}

Semantic roles & 50–950 ramp

primary
#301254
secondary
#658D35
accent
#E8409C
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #301254

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

Preview Lab → · Contrast checker → · Palette generator →

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