#300F4F#300F4F

#300F4F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.110 H 302.9°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#300F4F
RGBrgb(48, 15, 79)
HSLhsl(271, 68%, 18%)
HSVhsv(271, 81%, 31%)
CMYKcmyk(39.2%, 81%, 0%, 69%)
CIE-LABlab(12.83, 30.19, -32.45)
CIE-LCHlch(12.83, 44.32, 312.93°)
OKLaboklab(26.2% 0.0597 -0.0925)
OKLCHoklch(26.2% 0.11 302.9)
XYZxyz(2.8007, 1.5345, 7.5443)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300F4F #2E4F0F
analogous
#100F4F #300F4F #4F0F4E
triadic
#300F4F #4F300F #0F4F30
tetradic
#300F4F #4F100F #2E4F0F #0F4E4F
square
#300F4F #4F100F #2E4F0F #0F4E4F
split-complementary
#300F4F #4E4F0F #0F4F10
monochromatic
#10051A #11051C #300F4F #4F1982 #6F23B6

Accessibility & contrast

On white

16.07
#300F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#300F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300F4F
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300F4F#FFFFFF#000000##FFFFFF
##300F4F1.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #300f4f;
/* rgb */ color: rgb(48, 15, 79);
/* oklch */ color: oklch(26.2% 0.110 302.9);
Tailwind
colors: {
  custom: {
    50: '#6c5181',
    500: '#300f4f',
    950: '#000000',
  },
}
SCSS
$custom: #300f4f;
$custom-light: #6c5181;
$custom-dark: #000000;
JSON
{
  "hex": "#300f4f",
  "rgb": {
    "r": 48,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 270.938,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26204,
    "c": 0.11007,
    "h": 302.9
  },
  "luminance": 0.01535
}

Semantic roles & 50–950 ramp

primary
#300F4F
secondary
#5C8931
accent
#EB3D91
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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