#300F5F#300F5F

#300F5F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.129 H 295.2°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#300F5F
RGBrgb(48, 15, 95)
HSLhsl(265, 73%, 22%)
HSVhsv(265, 84%, 37%)
CMYKcmyk(49.5%, 84.2%, 0%, 62.7%)
CIE-LABlab(14.38, 34.68, -40.74)
CIE-LCHlch(14.38, 53.50, 310.41°)
OKLaboklab(27.77% 0.0549 -0.1168)
OKLCHoklch(27.77% 0.129 295.2)
XYZxyz(3.4547, 1.7962, 10.9889)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300F5F #3E5F0F
analogous
#0F165F #300F5F #580F5F
triadic
#300F5F #5F300F #0F5F30
tetradic
#300F5F #5F0F16 #3E5F0F #0F5F58
square
#300F5F #5F0F16 #3E5F0F #0F5F58
split-complementary
#300F5F #5F580F #165F0F
monochromatic
#0D041A #15072A #300F5F #4B1794 #6520C9

Accessibility & contrast

On white

15.45
#300F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#300F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300F5F
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300F5F#FFFFFF#000000##FFFFFF
##300F5F1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#222637
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #300f5f;
/* rgb */ color: rgb(48, 15, 95);
/* oklch */ color: oklch(27.8% 0.129 295.2);
Tailwind
colors: {
  custom: {
    50: '#6e528d',
    500: '#300f5f',
    950: '#000000',
  },
}
SCSS
$custom: #300f5f;
$custom-light: #6e528d;
$custom-dark: #000000;
JSON
{
  "hex": "#300f5f",
  "rgb": {
    "r": 48,
    "g": 15,
    "b": 95
  },
  "hsl": {
    "h": 264.75,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27771,
    "c": 0.12909,
    "h": 295.2
  },
  "luminance": 0.01796
}

Semantic roles & 50–950 ramp

primary
#300F5F
secondary
#6E9832
accent
#EF38A4
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #300F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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