#300F4C#300F4C

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

Color values

HEX#300F4C
RGBrgb(48, 15, 76)
HSLhsl(272, 67%, 18%)
HSVhsv(272, 80%, 30%)
CMYKcmyk(36.8%, 80.3%, 0%, 70.2%)
CIE-LABlab(12.56, 29.36, -30.82)
CIE-LCHlch(12.56, 42.57, 313.62°)
OKLaboklab(25.93% 0.0604 -0.0877)
OKLCHoklch(25.93% 0.106 304.6)
XYZxyz(2.6940, 1.4918, 6.9821)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300F4C #2B4C0F
analogous
#110F4C #300F4C #4C0F49
triadic
#300F4C #4C300F #0F4C30
tetradic
#300F4C #4C110F #2B4C0F #0F494C
square
#300F4C #4C110F #2B4C0F #0F494C
split-complementary
#300F4C #494C0F #0F4C11
monochromatic
#10051A #10051A #300F4C #50197F #7123B2

Accessibility & contrast

On white

16.17
#300F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#300F4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300F4C
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300F4C#FFFFFF#000000##FFFFFF
##300F4C1.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#00214B
Tritanopia (blue-blind)
#2B1E2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #300f4c;
/* rgb */ color: rgb(48, 15, 76);
/* oklch */ color: oklch(25.9% 0.106 304.6);
Tailwind
colors: {
  custom: {
    50: '#6c517f',
    500: '#300f4c',
    950: '#000000',
  },
}
SCSS
$custom: #300f4c;
$custom-light: #6c517f;
$custom-dark: #000000;
JSON
{
  "hex": "#300f4c",
  "rgb": {
    "r": 48,
    "g": 15,
    "b": 76
  },
  "hsl": {
    "h": 272.459,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25929,
    "c": 0.10648,
    "h": 304.6
  },
  "luminance": 0.01492
}

Semantic roles & 50–950 ramp

primary
#300F4C
secondary
#588631
accent
#EA3E8D
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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