#300D4E#300D4E

#300D4E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.111 H 303.9°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#300D4E
RGBrgb(48, 13, 78)
HSLhsl(272, 71%, 18%)
HSVhsv(272, 83%, 31%)
CMYKcmyk(38.5%, 83.3%, 0%, 69.4%)
CIE-LABlab(12.39, 30.89, -32.46)
CIE-LCHlch(12.39, 44.81, 313.58°)
OKLaboklab(25.87% 0.0621 -0.0925)
OKLCHoklch(25.87% 0.111 303.9)
XYZxyz(2.7377, 1.4663, 7.3450)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300D4E #2B4E0D
analogous
#100D4E #300D4E #4E0D4B
triadic
#300D4E #4E300D #0D4E30
tetradic
#300D4E #4E100D #2B4E0D #0D4B4E
square
#300D4E #4E100D #2B4E0D #0D4B4E
split-complementary
#300D4E #4B4E0D #0D4E10
monochromatic
#10041A #10041A #300D4E #501682 #711EB7

Accessibility & contrast

On white

16.24
#300D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#300D4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300D4E
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300D4E#FFFFFF#000000##FFFFFF
##300D4E1.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002050
Deuteranopia (green-blind)
#00204D
Tritanopia (blue-blind)
#2A1E2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #300d4e;
/* rgb */ color: rgb(48, 13, 78);
/* oklch */ color: oklch(25.9% 0.111 303.9);
Tailwind
colors: {
  custom: {
    50: '#6c5080',
    500: '#300d4e',
    950: '#000000',
  },
}
SCSS
$custom: #300d4e;
$custom-light: #6c5080;
$custom-dark: #000000;
JSON
{
  "hex": "#300d4e",
  "rgb": {
    "r": 48,
    "g": 13,
    "b": 78
  },
  "hsl": {
    "h": 272.308,
    "s": 71.429,
    "l": 17.843
  },
  "oklch": {
    "l": 0.2587,
    "c": 0.1114,
    "h": 303.9
  },
  "luminance": 0.01466
}

Semantic roles & 50–950 ramp

primary
#300D4E
secondary
#58892E
accent
#EE3A8D
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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