#300F5D#300F5D

#300F5D is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.127 H 296.0°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#300F5D
RGBrgb(48, 15, 93)
HSLhsl(265, 72%, 21%)
HSVhsv(265, 84%, 36%)
CMYKcmyk(48.4%, 83.9%, 0%, 63.5%)
CIE-LABlab(14.18, 34.11, -39.74)
CIE-LCHlch(14.18, 52.37, 310.65°)
OKLaboklab(27.57% 0.0556 -0.1139)
OKLCHoklch(27.57% 0.127 296)
XYZxyz(3.3650, 1.7603, 10.5163)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300F5D #3C5D0F
analogous
#0F155D #300F5D #570F5D
triadic
#300F5D #5D300F #0F5D30
tetradic
#300F5D #5D0F15 #3C5D0F #0F5D57
square
#300F5D #5D0F15 #3C5D0F #0F5D57
split-complementary
#300F5D #5D570F #155D0F
monochromatic
#0E041A #150628 #300F5D #4B1792 #6620C6

Accessibility & contrast

On white

15.53
#300F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#300F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300F5D
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300F5D#FFFFFF#000000##FFFFFF
##300F5D1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#00235C
Tritanopia (blue-blind)
#232536
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #300f5d;
/* rgb */ color: rgb(48, 15, 93);
/* oklch */ color: oklch(27.6% 0.127 296.0);
Tailwind
colors: {
  custom: {
    50: '#6e528c',
    500: '#300f5d',
    950: '#000000',
  },
}
SCSS
$custom: #300f5d;
$custom-light: #6e528c;
$custom-dark: #000000;
JSON
{
  "hex": "#300f5d",
  "rgb": {
    "r": 48,
    "g": 15,
    "b": 93
  },
  "hsl": {
    "h": 265.385,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27567,
    "c": 0.12673,
    "h": 296
  },
  "luminance": 0.0176
}

Semantic roles & 50–950 ramp

primary
#300F5D
secondary
#6C9631
accent
#EF39A2
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #300F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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