#300F5C#300F5C

#300F5C is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.5% C 0.126 H 296.5°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#300F5C
RGBrgb(48, 15, 92)
HSLhsl(266, 72%, 21%)
HSVhsv(266, 84%, 36%)
CMYKcmyk(47.8%, 83.7%, 0%, 63.9%)
CIE-LABlab(14.07, 33.83, -39.23)
CIE-LCHlch(14.07, 51.80, 310.77°)
OKLaboklab(27.47% 0.056 -0.1124)
OKLCHoklch(27.47% 0.126 296.5)
XYZxyz(3.3210, 1.7427, 10.2845)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300F5C #3B5C0F
analogous
#0F145C #300F5C #560F5C
triadic
#300F5C #5C300F #0F5C30
tetradic
#300F5C #5C0F14 #3B5C0F #0F5C56
square
#300F5C #5C0F14 #3B5C0F #0F5C56
split-complementary
#300F5C #5C560F #145C0F
monochromatic
#0E041A #150627 #300F5C #4B1891 #6720C5

Accessibility & contrast

On white

15.57
#300F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300F5C
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300F5C#FFFFFF#000000##FFFFFF
##300F5C1.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00235B
Tritanopia (blue-blind)
#242435
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #300f5c;
/* rgb */ color: rgb(48, 15, 92);
/* oklch */ color: oklch(27.5% 0.126 296.5);
Tailwind
colors: {
  custom: {
    50: '#6e528b',
    500: '#300f5c',
    950: '#000000',
  },
}
SCSS
$custom: #300f5c;
$custom-light: #6e528b;
$custom-dark: #000000;
JSON
{
  "hex": "#300f5c",
  "rgb": {
    "r": 48,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 265.714,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27466,
    "c": 0.12556,
    "h": 296.5
  },
  "luminance": 0.01743
}

Semantic roles & 50–950 ramp

primary
#300F5C
secondary
#6B9531
accent
#EF39A1
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #300F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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