#300B56#300B56

#300B56 is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.4% C 0.123 H 300.0°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#300B56
RGBrgb(48, 11, 86)
HSLhsl(270, 77%, 19%)
HSVhsv(270, 87%, 34%)
CMYKcmyk(44.2%, 87.2%, 0%, 66.3%)
CIE-LABlab(12.86, 33.94, -37.17)
CIE-LCHlch(12.86, 50.34, 312.40°)
OKLaboklab(26.43% 0.0614 -0.1063)
OKLCHoklch(26.43% 0.123 300)
XYZxyz(3.0179, 1.5396, 8.9405)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300B56 #31560B
analogous
#0B0C56 #300B56 #560B56
triadic
#300B56 #56300B #0B5630
tetradic
#300B56 #560B0C #31560B #0B5656
square
#300B56 #560B0C #31560B #0B5656
split-complementary
#300B56 #56560B #0C560B
monochromatic
#0F031B #120420 #300B56 #4E128C #6D19C3

Accessibility & contrast

On white

16.06
#300B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300B56
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300B56#FFFFFF#000000##FFFFFF
##300B561.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002158
Deuteranopia (green-blind)
#002155
Tritanopia (blue-blind)
#272031
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #300b56;
/* rgb */ color: rgb(48, 11, 86);
/* oklch */ color: oklch(26.4% 0.123 300.0);
Tailwind
colors: {
  custom: {
    50: '#6d4f86',
    500: '#300b56',
    950: '#000000',
  },
}
SCSS
$custom: #300b56;
$custom-light: #6d4f86;
$custom-dark: #000000;
JSON
{
  "hex": "#300b56",
  "rgb": {
    "r": 48,
    "g": 11,
    "b": 86
  },
  "hsl": {
    "h": 269.6,
    "s": 77.32,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26434,
    "c": 0.1228,
    "h": 300
  },
  "luminance": 0.0154
}

Semantic roles & 50–950 ramp

primary
#300B56
secondary
#5F912B
accent
#F43495
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #300B56

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

Preview Lab → · Contrast checker → · Palette generator →

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