#300F4B#300F4B

#300F4B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.105 H 305.1°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#300F4B
RGBrgb(48, 15, 75)
HSLhsl(273, 67%, 18%)
HSVhsv(273, 80%, 29%)
CMYKcmyk(36%, 80%, 0%, 70.6%)
CIE-LABlab(12.47, 29.09, -30.27)
CIE-LCHlch(12.47, 41.98, 313.86°)
OKLaboklab(25.84% 0.0606 -0.0861)
OKLCHoklch(25.84% 0.105 305.1)
XYZxyz(2.6595, 1.4780, 6.8004)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300F4B #2A4B0F
analogous
#120F4B #300F4B #4B0F48
triadic
#300F4B #4B300F #0F4B30
tetradic
#300F4B #4B120F #2A4B0F #0F484B
square
#300F4B #4B120F #2A4B0F #0F484B
split-complementary
#300F4B #484B0F #0F4B12
monochromatic
#10051A #10051A #300F4B #51197E #7123B1

Accessibility & contrast

On white

16.21
#300F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300F4B
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300F4B#FFFFFF#000000##FFFFFF
##300F4B1.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#00214A
Tritanopia (blue-blind)
#2B1D2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #300f4b;
/* rgb */ color: rgb(48, 15, 75);
/* oklch */ color: oklch(25.8% 0.105 305.1);
Tailwind
colors: {
  custom: {
    50: '#6c517e',
    500: '#300f4b',
    950: '#000000',
  },
}
SCSS
$custom: #300f4b;
$custom-light: #6c517e;
$custom-dark: #000000;
JSON
{
  "hex": "#300f4b",
  "rgb": {
    "r": 48,
    "g": 15,
    "b": 75
  },
  "hsl": {
    "h": 273,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25839,
    "c": 0.10528,
    "h": 305.1
  },
  "luminance": 0.01478
}

Semantic roles & 50–950 ramp

primary
#300F4B
secondary
#578530
accent
#EA3E8B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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