#300C51#300C51

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

Color values

HEX#300C51
RGBrgb(48, 12, 81)
HSLhsl(271, 74%, 18%)
HSVhsv(271, 85%, 32%)
CMYKcmyk(40.7%, 85.2%, 0%, 68.2%)
CIE-LABlab(12.51, 32.16, -34.32)
CIE-LCHlch(12.51, 47.03, 313.13°)
OKLaboklab(26.04% 0.0622 -0.098)
OKLCHoklch(26.04% 0.116 302.4)
XYZxyz(2.8352, 1.4854, 7.9203)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300C51 #2D510C
analogous
#0D0C51 #300C51 #510C4F
triadic
#300C51 #51300C #0C5130
tetradic
#300C51 #510D0C #2D510C #0C4F51
square
#300C51 #510D0C #2D510C #0C4F51
split-complementary
#300C51 #4F510C #0C510D
monochromatic
#10041B #10041C #300C51 #501486 #6F1CBC

Accessibility & contrast

On white

16.19
#300C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300C51
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300C51#FFFFFF#000000##FFFFFF
##300C511.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002053
Deuteranopia (green-blind)
#002050
Tritanopia (blue-blind)
#291E2E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #300c51;
/* rgb */ color: rgb(48, 12, 81);
/* oklch */ color: oklch(26.0% 0.116 302.4);
Tailwind
colors: {
  custom: {
    50: '#6c5082',
    500: '#300c51',
    950: '#000000',
  },
}
SCSS
$custom: #300c51;
$custom-light: #6c5082;
$custom-dark: #000000;
JSON
{
  "hex": "#300c51",
  "rgb": {
    "r": 48,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 271.304,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26044,
    "c": 0.11604,
    "h": 302.4
  },
  "luminance": 0.01485
}

Semantic roles & 50–950 ramp

primary
#300C51
secondary
#5A8C2C
accent
#F13790
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300C51

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

Preview Lab → · Contrast checker → · Palette generator →

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