#300C50#300C50

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

Color values

HEX#300C50
RGBrgb(48, 12, 80)
HSLhsl(272, 74%, 18%)
HSVhsv(272, 85%, 31%)
CMYKcmyk(40%, 85%, 0%, 68.6%)
CIE-LABlab(12.42, 31.89, -33.79)
CIE-LCHlch(12.42, 46.46, 313.34°)
OKLaboklab(25.95% 0.0625 -0.0964)
OKLCHoklch(25.95% 0.115 303)
XYZxyz(2.7980, 1.4705, 7.7243)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300C50 #2C500C
analogous
#0E0C50 #300C50 #500C4E
triadic
#300C50 #50300C #0C5030
tetradic
#300C50 #500E0C #2C500C #0C4E50
square
#300C50 #500E0C #2C500C #0C4E50
split-complementary
#300C50 #4E500C #0C500E
monochromatic
#10041B #10041B #300C50 #501485 #701CBA

Accessibility & contrast

On white

16.23
#300C50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300C50
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300C50#FFFFFF#000000##FFFFFF
##300C501.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002052
Deuteranopia (green-blind)
#00204F
Tritanopia (blue-blind)
#291E2E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #300c50;
/* rgb */ color: rgb(48, 12, 80);
/* oklch */ color: oklch(25.9% 0.115 303.0);
Tailwind
colors: {
  custom: {
    50: '#6c5082',
    500: '#300c50',
    950: '#000000',
  },
}
SCSS
$custom: #300c50;
$custom-light: #6c5082;
$custom-dark: #000000;
JSON
{
  "hex": "#300c50",
  "rgb": {
    "r": 48,
    "g": 12,
    "b": 80
  },
  "hsl": {
    "h": 271.765,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25948,
    "c": 0.1149,
    "h": 303
  },
  "luminance": 0.01471
}

Semantic roles & 50–950 ramp

primary
#300C50
secondary
#598B2C
accent
#F1378E
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300C50

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

Preview Lab → · Contrast checker → · Palette generator →

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