#301054#301054

#301054 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.8% C 0.115 H 300.0°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#301054
RGBrgb(48, 16, 84)
HSLhsl(268, 68%, 20%)
HSVhsv(268, 81%, 33%)
CMYKcmyk(42.9%, 81%, 0%, 67.1%)
CIE-LABlab(13.47, 31.08, -34.82)
CIE-LCHlch(13.47, 46.67, 311.75°)
OKLaboklab(26.8% 0.0574 -0.0995)
OKLCHoklch(26.8% 0.115 300)
XYZxyz(3.0040, 1.6390, 8.5439)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301054 #345410
analogous
#101254 #301054 #521054
triadic
#301054 #543010 #105430
tetradic
#301054 #541012 #345410 #105452
square
#301054 #541012 #345410 #105452
split-complementary
#301054 #545210 #125410
monochromatic
#0F051A #130621 #301054 #4D1A87 #6B24BB

Accessibility & contrast

On white

15.82
#301054 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#301054 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301054
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301054#FFFFFF#000000##FFFFFF
##3010541.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002256
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#282131
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #301054;
/* rgb */ color: rgb(48, 16, 84);
/* oklch */ color: oklch(26.8% 0.115 300.0);
Tailwind
colors: {
  custom: {
    50: '#6d5285',
    500: '#301054',
    950: '#000000',
  },
}
SCSS
$custom: #301054;
$custom-light: #6d5285;
$custom-dark: #000000;
JSON
{
  "hex": "#301054",
  "rgb": {
    "r": 48,
    "g": 16,
    "b": 84
  },
  "hsl": {
    "h": 268.235,
    "s": 68,
    "l": 19.608
  },
  "oklch": {
    "l": 0.268,
    "c": 0.11482,
    "h": 300
  },
  "luminance": 0.01639
}

Semantic roles & 50–950 ramp

primary
#301054
secondary
#638E32
accent
#EB3D99
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #301054

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

Preview Lab → · Contrast checker → · Palette generator →

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