#301148#301148

#301148 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.099 H 306.5°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#301148
RGBrgb(48, 17, 72)
HSLhsl(274, 62%, 17%)
HSVhsv(274, 76%, 28%)
CMYKcmyk(33.3%, 76.4%, 0%, 71.8%)
CIE-LABlab(12.59, 27.20, -27.99)
CIE-LCHlch(12.59, 39.03, 314.19°)
OKLaboklab(25.85% 0.0587 -0.0794)
OKLCHoklch(25.85% 0.099 306.5)
XYZxyz(2.5888, 1.4972, 6.2822)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301148 #294811
analogous
#141148 #301148 #481145
triadic
#301148 #483011 #114830
tetradic
#301148 #481411 #294811 #114548
square
#301148 #481411 #294811 #114548
split-complementary
#301148 #454811 #114814
monochromatic
#110619 #110619 #301148 #511D7A #7228AB

Accessibility & contrast

On white

16.16
#301148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#301148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301148
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301148#FFFFFF#000000##FFFFFF
##3011481.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204A
Deuteranopia (green-blind)
#032147
Tritanopia (blue-blind)
#2C1D2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #301148;
/* rgb */ color: rgb(48, 17, 72);
/* oklch */ color: oklch(25.8% 0.099 306.5);
Tailwind
colors: {
  custom: {
    50: '#6b527b',
    500: '#301148',
    950: '#000000',
  },
}
SCSS
$custom: #301148;
$custom-light: #6b527b;
$custom-dark: #000000;
JSON
{
  "hex": "#301148",
  "rgb": {
    "r": 48,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 273.818,
    "s": 61.798,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25845,
    "c": 0.09875,
    "h": 306.5
  },
  "luminance": 0.01497
}

Semantic roles & 50–950 ramp

primary
#301148
secondary
#558233
accent
#E5438A
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #301148

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

Preview Lab → · Contrast checker → · Palette generator →

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