#300F4D#300F4D

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

Color values

HEX#300F4D
RGBrgb(48, 15, 77)
HSLhsl(272, 67%, 18%)
HSVhsv(272, 81%, 30%)
CMYKcmyk(37.7%, 80.5%, 0%, 69.8%)
CIE-LABlab(12.65, 29.63, -31.36)
CIE-LCHlch(12.65, 43.15, 313.38°)
OKLaboklab(26.02% 0.0602 -0.0893)
OKLCHoklch(26.02% 0.108 304)
XYZxyz(2.7290, 1.5059, 7.1666)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300F4D #2C4D0F
analogous
#110F4D #300F4D #4D0F4B
triadic
#300F4D #4D300F #0F4D30
tetradic
#300F4D #4D110F #2C4D0F #0F4B4D
square
#300F4D #4D110F #2C4D0F #0F4B4D
split-complementary
#300F4D #4B4D0F #0F4D11
monochromatic
#10051A #10051A #300F4D #501980 #7023B3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##300F4D#FFFFFF#000000##FFFFFF
##300F4D1.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)
#00204F
Deuteranopia (green-blind)
#00214C
Tritanopia (blue-blind)
#2A1E2D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #300f4d;
/* rgb */ color: rgb(48, 15, 77);
/* oklch */ color: oklch(26.0% 0.108 304.0);
Tailwind
colors: {
  custom: {
    50: '#6c517f',
    500: '#300f4d',
    950: '#000000',
  },
}
SCSS
$custom: #300f4d;
$custom-light: #6c517f;
$custom-dark: #000000;
JSON
{
  "hex": "#300f4d",
  "rgb": {
    "r": 48,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 271.935,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.2602,
    "c": 0.10768,
    "h": 304
  },
  "luminance": 0.01506
}

Semantic roles & 50–950 ramp

primary
#300F4D
secondary
#598731
accent
#EA3E8E
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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