#300C4F#300C4F

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

Color values

HEX#300C4F
RGBrgb(48, 12, 79)
HSLhsl(272, 74%, 18%)
HSVhsv(272, 85%, 31%)
CMYKcmyk(39.2%, 84.8%, 0%, 69%)
CIE-LABlab(12.32, 31.62, -33.26)
CIE-LCHlch(12.32, 45.89, 313.55°)
OKLaboklab(25.85% 0.0628 -0.0948)
OKLCHoklch(25.85% 0.114 303.5)
XYZxyz(2.7613, 1.4558, 7.5311)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300C4F #2B4F0C
analogous
#0F0C4F #300C4F #4F0C4C
triadic
#300C4F #4F300C #0C4F30
tetradic
#300C4F #4F0F0C #2B4F0C #0C4C4F
square
#300C4F #4F0F0C #2B4F0C #0C4C4F
split-complementary
#300C4F #4C4F0C #0C4F0F
monochromatic
#10041B #10041B #300C4F #501484 #711CB9

Accessibility & contrast

On white

16.26
#300C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300C4F
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300C4F#FFFFFF#000000##FFFFFF
##300C4F1.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F51
Deuteranopia (green-blind)
#00204E
Tritanopia (blue-blind)
#2A1E2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #300c4f;
/* rgb */ color: rgb(48, 12, 79);
/* oklch */ color: oklch(25.9% 0.114 303.5);
Tailwind
colors: {
  custom: {
    50: '#6c4f81',
    500: '#300c4f',
    950: '#000000',
  },
}
SCSS
$custom: #300c4f;
$custom-light: #6c4f81;
$custom-dark: #000000;
JSON
{
  "hex": "#300c4f",
  "rgb": {
    "r": 48,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 272.239,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25852,
    "c": 0.11375,
    "h": 303.5
  },
  "luminance": 0.01456
}

Semantic roles & 50–950 ramp

primary
#300C4F
secondary
#588B2C
accent
#F0388D
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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