#301248#301248

#301248 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.097 H 306.2°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#301248
RGBrgb(48, 18, 72)
HSLhsl(273, 60%, 18%)
HSVhsv(273, 75%, 28%)
CMYKcmyk(33.3%, 75%, 0%, 71.8%)
CIE-LABlab(12.79, 26.65, -27.67)
CIE-LCHlch(12.79, 38.41, 313.93°)
OKLaboklab(25.99% 0.0574 -0.0784)
OKLCHoklch(25.99% 0.097 306.2)
XYZxyz(2.6047, 1.5289, 6.2875)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301248 #2A4812
analogous
#151248 #301248 #481245
triadic
#301248 #483012 #124830
tetradic
#301248 #481512 #2A4812 #124548
square
#301248 #481512 #2A4812 #124548
split-complementary
#301248 #454812 #124815
monochromatic
#100618 #100618 #301248 #511E79 #712AAA

Accessibility & contrast

On white

16.08
#301248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#301248 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301248
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301248#FFFFFF#000000##FFFFFF
##3012481.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301248;
/* rgb */ color: rgb(48, 18, 72);
/* oklch */ color: oklch(26.0% 0.097 306.2);
Tailwind
colors: {
  custom: {
    50: '#6b527b',
    500: '#301248',
    950: '#000000',
  },
}
SCSS
$custom: #301248;
$custom-light: #6b527b;
$custom-dark: #000000;
JSON
{
  "hex": "#301248",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 273.333,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25989,
    "c": 0.09722,
    "h": 306.2
  },
  "luminance": 0.01529
}

Semantic roles & 50–950 ramp

primary
#301248
secondary
#578135
accent
#E3458B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #301248

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

Preview Lab → · Contrast checker → · Palette generator →

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