#301154#301154

#301154 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.114 H 299.7°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#301154
RGBrgb(48, 17, 84)
HSLhsl(268, 66%, 20%)
HSVhsv(268, 80%, 33%)
CMYKcmyk(42.9%, 79.8%, 0%, 67.1%)
CIE-LABlab(13.65, 30.57, -34.53)
CIE-LCHlch(13.65, 46.11, 311.52°)
OKLaboklab(26.93% 0.0563 -0.0986)
OKLCHoklch(26.93% 0.114 299.7)
XYZxyz(3.0192, 1.6693, 8.5489)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301154 #355411
analogous
#111454 #301154 #521154
triadic
#301154 #543011 #115430
tetradic
#301154 #541114 #355411 #115452
square
#301154 #541114 #355411 #115452
split-complementary
#301154 #545211 #145411
monochromatic
#0F0519 #130721 #301154 #4D1B87 #6A26BA

Accessibility & contrast

On white

15.74
#301154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301154
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301154#FFFFFF#000000##FFFFFF
##3011541.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301154;
/* rgb */ color: rgb(48, 17, 84);
/* oklch */ color: oklch(26.9% 0.114 299.7);
Tailwind
colors: {
  custom: {
    50: '#6c5285',
    500: '#301154',
    950: '#000000',
  },
}
SCSS
$custom: #301154;
$custom-light: #6c5285;
$custom-dark: #000000;
JSON
{
  "hex": "#301154",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 84
  },
  "hsl": {
    "h": 267.761,
    "s": 66.337,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26927,
    "c": 0.11355,
    "h": 299.7
  },
  "luminance": 0.01669
}

Semantic roles & 50–950 ramp

primary
#301154
secondary
#648D34
accent
#E93F9A
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #301154

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

Preview Lab → · Contrast checker → · Palette generator →

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