#300F4A#300F4A

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

Color values

HEX#300F4A
RGBrgb(48, 15, 74)
HSLhsl(274, 66%, 17%)
HSVhsv(274, 80%, 29%)
CMYKcmyk(35.1%, 79.7%, 0%, 71%)
CIE-LABlab(12.38, 28.82, -29.72)
CIE-LCHlch(12.38, 41.39, 314.12°)
OKLaboklab(25.75% 0.0608 -0.0845)
OKLCHoklch(25.75% 0.104 305.8)
XYZxyz(2.6255, 1.4645, 6.6216)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300F4A #294A0F
analogous
#120F4A #300F4A #4A0F47
triadic
#300F4A #4A300F #0F4A30
tetradic
#300F4A #4A120F #294A0F #0F474A
square
#300F4A #4A120F #294A0F #0F474A
split-complementary
#300F4A #474A0F #0F4A12
monochromatic
#110519 #110519 #300F4A #51197D #7224B0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##300F4A#FFFFFF#000000##FFFFFF
##300F4A1.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)
#001F4C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#2B1D2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #300f4a;
/* rgb */ color: rgb(48, 15, 74);
/* oklch */ color: oklch(25.7% 0.104 305.8);
Tailwind
colors: {
  custom: {
    50: '#6b517d',
    500: '#300f4a',
    950: '#000000',
  },
}
SCSS
$custom: #300f4a;
$custom-light: #6b517d;
$custom-dark: #000000;
JSON
{
  "hex": "#300f4a",
  "rgb": {
    "r": 48,
    "g": 15,
    "b": 74
  },
  "hsl": {
    "h": 273.559,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25749,
    "c": 0.10408,
    "h": 305.8
  },
  "luminance": 0.01464
}

Semantic roles & 50–950 ramp

primary
#300F4A
secondary
#558430
accent
#E93F8A
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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