#300F76#300F76

#300F76 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.156 H 287.3°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#300F76
RGBrgb(48, 15, 118)
HSLhsl(259, 77%, 26%)
HSVhsv(259, 87%, 46%)
CMYKcmyk(59.3%, 87.3%, 0%, 53.7%)
CIE-LABlab(16.88, 41.25, -51.69)
CIE-LCHlch(16.88, 66.13, 308.59°)
OKLaboklab(30.25% 0.0463 -0.1488)
OKLCHoklch(30.25% 0.156 287.3)
XYZxyz(4.6588, 2.2778, 17.3302)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300F76 #55760F
analogous
#0F2176 #300F76 #630F76
triadic
#300F76 #76300F #0F7630
tetradic
#300F76 #760F21 #55760F #0F7663
square
#300F76 #760F21 #55760F #0F7663
split-complementary
#300F76 #76630F #21760F
monochromatic
#0B031B #1A0840 #300F76 #4616AC #5C1DE2

Accessibility & contrast

On white

14.43
#300F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#300F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300F76
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300F76#FFFFFF#000000##FFFFFF
##300F761.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002774
Tritanopia (blue-blind)
#0E2F44
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #300f76;
/* rgb */ color: rgb(48, 15, 118);
/* oklch */ color: oklch(30.3% 0.156 287.3);
Tailwind
colors: {
  custom: {
    50: '#72549f',
    500: '#300f76',
    950: '#000000',
  },
}
SCSS
$custom: #300f76;
$custom-light: #72549f;
$custom-dark: #000000;
JSON
{
  "hex": "#300f76",
  "rgb": {
    "r": 48,
    "g": 15,
    "b": 118
  },
  "hsl": {
    "h": 259.223,
    "s": 77.444,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30251,
    "c": 0.15587,
    "h": 287.3
  },
  "luminance": 0.02278
}

Semantic roles & 50–950 ramp

primary
#300F76
secondary
#86AD33
accent
#F434B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #300F76

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

Preview Lab → · Contrast checker → · Palette generator →

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