#300B48#300B48

#300B48 is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.1% C 0.107 H 307.9°. Best body text is #FFFFFF at 16.57:1 contrast (WCAG AA passes).

Color values

HEX#300B48
RGBrgb(48, 11, 72)
HSLhsl(276, 73%, 16%)
HSVhsv(276, 85%, 28%)
CMYKcmyk(33.3%, 84.7%, 0%, 71.8%)
CIE-LABlab(11.52, 30.23, -29.72)
CIE-LCHlch(11.52, 42.39, 315.48°)
OKLaboklab(25.09% 0.0657 -0.0844)
OKLCHoklch(25.09% 0.107 307.9)
XYZxyz(2.5080, 1.3356, 6.2553)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300B48 #23480B
analogous
#120B48 #300B48 #480B42
triadic
#300B48 #48300B #0B4830
tetradic
#300B48 #48120B #23480B #0B4248
square
#300B48 #48120B #23480B #0B4248
split-complementary
#300B48 #42480B #0B4812
monochromatic
#12041B #12041B #300B48 #53137D #771BB2

Accessibility & contrast

On white

16.57
#300B48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#300B48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300B48
16.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300B48#FFFFFF#000000##FFFFFF
##300B481.0016.571.2716.57
#FFFFFF16.571.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4A
Deuteranopia (green-blind)
#001F47
Tritanopia (blue-blind)
#2C1A29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #300b48;
/* rgb */ color: rgb(48, 11, 72);
/* oklch */ color: oklch(25.1% 0.107 307.9);
Tailwind
colors: {
  custom: {
    50: '#6c4f7b',
    500: '#300b48',
    950: '#000000',
  },
}
SCSS
$custom: #300b48;
$custom-light: #6c4f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#300b48",
  "rgb": {
    "r": 48,
    "g": 11,
    "b": 72
  },
  "hsl": {
    "h": 276.393,
    "s": 73.494,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25088,
    "c": 0.10697,
    "h": 307.9
  },
  "luminance": 0.01336
}

Semantic roles & 50–950 ramp

primary
#300B48
secondary
#4E842A
accent
#F03880
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #300B48

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

Preview Lab → · Contrast checker → · Palette generator →

#300B48 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva