#300E4F#300E4F

#300E4F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.111 H 303.1°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#300E4F
RGBrgb(48, 14, 79)
HSLhsl(271, 70%, 18%)
HSVhsv(271, 82%, 31%)
CMYKcmyk(39.2%, 82.3%, 0%, 69%)
CIE-LABlab(12.65, 30.68, -32.73)
CIE-LCHlch(12.65, 44.86, 313.15°)
OKLaboklab(26.08% 0.0608 -0.0933)
OKLCHoklch(26.08% 0.111 303.1)
XYZxyz(2.7869, 1.5070, 7.5397)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300E4F #2D4F0E
analogous
#100E4F #300E4F #4F0E4D
triadic
#300E4F #4F300E #0E4F30
tetradic
#300E4F #4F100E #2D4F0E #0E4D4F
square
#300E4F #4F100E #2D4F0E #0E4D4F
split-complementary
#300E4F #4D4F0E #0E4F10
monochromatic
#10051A #10051B #300E4F #501783 #6F20B7

Accessibility & contrast

On white

16.14
#300E4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300E4F
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300E4F#FFFFFF#000000##FFFFFF
##300E4F1.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#2A1E2E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #300e4f;
/* rgb */ color: rgb(48, 14, 79);
/* oklch */ color: oklch(26.1% 0.111 303.1);
Tailwind
colors: {
  custom: {
    50: '#6c5081',
    500: '#300e4f',
    950: '#000000',
  },
}
SCSS
$custom: #300e4f;
$custom-light: #6c5081;
$custom-dark: #000000;
JSON
{
  "hex": "#300e4f",
  "rgb": {
    "r": 48,
    "g": 14,
    "b": 79
  },
  "hsl": {
    "h": 271.385,
    "s": 69.892,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26082,
    "c": 0.11135,
    "h": 303.1
  },
  "luminance": 0.01507
}

Semantic roles & 50–950 ramp

primary
#300E4F
secondary
#5A8A2F
accent
#ED3B90
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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