#300F54#300F54

#300F54 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.116 H 300.2°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#300F54
RGBrgb(48, 15, 84)
HSLhsl(269, 70%, 19%)
HSVhsv(269, 82%, 33%)
CMYKcmyk(42.9%, 82.1%, 0%, 67.1%)
CIE-LABlab(13.29, 31.58, -35.11)
CIE-LCHlch(13.29, 47.22, 311.97°)
OKLaboklab(26.68% 0.0584 -0.1003)
OKLCHoklch(26.68% 0.116 300.2)
XYZxyz(2.9896, 1.6101, 8.5391)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300F54 #33540F
analogous
#0F1054 #300F54 #530F54
triadic
#300F54 #54300F #0F5430
tetradic
#300F54 #540F10 #33540F #0F5453
square
#300F54 #540F10 #33540F #0F5453
split-complementary
#300F54 #54530F #10540F
monochromatic
#0F051A #120620 #300F54 #4E1888 #6B22BC

Accessibility & contrast

On white

15.89
#300F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#300F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300F54
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300F54#FFFFFF#000000##FFFFFF
##300F541.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002256
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#282131
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #300f54;
/* rgb */ color: rgb(48, 15, 84);
/* oklch */ color: oklch(26.7% 0.116 300.2);
Tailwind
colors: {
  custom: {
    50: '#6d5185',
    500: '#300f54',
    950: '#000000',
  },
}
SCSS
$custom: #300f54;
$custom-light: #6d5185;
$custom-dark: #000000;
JSON
{
  "hex": "#300f54",
  "rgb": {
    "r": 48,
    "g": 15,
    "b": 84
  },
  "hsl": {
    "h": 268.696,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26677,
    "c": 0.11605,
    "h": 300.2
  },
  "luminance": 0.0161
}

Semantic roles & 50–950 ramp

primary
#300F54
secondary
#618E31
accent
#ED3B98
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #300F54

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

Preview Lab → · Contrast checker → · Palette generator →

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