#300B4E#300B4E

#300B4E is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.114 H 304.3°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#300B4E
RGBrgb(48, 11, 78)
HSLhsl(273, 75%, 17%)
HSVhsv(273, 86%, 31%)
CMYKcmyk(38.5%, 85.9%, 0%, 69.4%)
CIE-LABlab(12.08, 31.80, -32.98)
CIE-LCHlch(12.08, 45.81, 313.95°)
OKLaboklab(25.65% 0.0641 -0.094)
OKLCHoklch(25.65% 0.114 304.3)
XYZxyz(2.7134, 1.4178, 7.3370)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300B4E #294E0B
analogous
#0E0B4E #300B4E #4E0B4B
triadic
#300B4E #4E300B #0B4E30
tetradic
#300B4E #4E0E0B #294E0B #0B4B4E
square
#300B4E #4E0E0B #294E0B #0B4B4E
split-complementary
#300B4E #4B4E0B #0B4E0E
monochromatic
#11041B #11041B #300B4E #511384 #721AB9

Accessibility & contrast

On white

16.36
#300B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#300B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300B4E
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300B4E#FFFFFF#000000##FFFFFF
##300B4E1.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F50
Deuteranopia (green-blind)
#00204D
Tritanopia (blue-blind)
#2A1D2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #300b4e;
/* rgb */ color: rgb(48, 11, 78);
/* oklch */ color: oklch(25.6% 0.114 304.3);
Tailwind
colors: {
  custom: {
    50: '#6c4f80',
    500: '#300b4e',
    950: '#000000',
  },
}
SCSS
$custom: #300b4e;
$custom-light: #6c4f80;
$custom-dark: #000000;
JSON
{
  "hex": "#300b4e",
  "rgb": {
    "r": 48,
    "g": 11,
    "b": 78
  },
  "hsl": {
    "h": 273.134,
    "s": 75.281,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25648,
    "c": 0.11376,
    "h": 304.3
  },
  "luminance": 0.01418
}

Semantic roles & 50–950 ramp

primary
#300B4E
secondary
#558A2B
accent
#F2368A
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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