#300D58#300D58

#300D58 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.8% C 0.123 H 298.7°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#300D58
RGBrgb(48, 13, 88)
HSLhsl(268, 74%, 20%)
HSVhsv(268, 85%, 35%)
CMYKcmyk(45.5%, 85.2%, 0%, 65.5%)
CIE-LABlab(13.36, 33.62, -37.71)
CIE-LCHlch(13.36, 50.53, 311.72°)
OKLaboklab(26.84% 0.059 -0.1079)
OKLCHoklch(26.84% 0.123 298.7)
XYZxyz(3.1238, 1.6208, 9.3789)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300D58 #35580D
analogous
#0D1058 #300D58 #560D58
triadic
#300D58 #58300D #0D5830
tetradic
#300D58 #580D10 #35580D #0D5856
square
#300D58 #580D10 #35580D #0D5856
split-complementary
#300D58 #58560D #10580D
monochromatic
#0F041B #130523 #300D58 #4D158D #6A1DC3

Accessibility & contrast

On white

15.86
#300D58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300D58
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300D58#FFFFFF#000000##FFFFFF
##300D581.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225A
Deuteranopia (green-blind)
#002257
Tritanopia (blue-blind)
#262233
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #300d58;
/* rgb */ color: rgb(48, 13, 88);
/* oklch */ color: oklch(26.8% 0.123 298.7);
Tailwind
colors: {
  custom: {
    50: '#6d5188',
    500: '#300d58',
    950: '#000000',
  },
}
SCSS
$custom: #300d58;
$custom-light: #6d5188;
$custom-dark: #000000;
JSON
{
  "hex": "#300d58",
  "rgb": {
    "r": 48,
    "g": 13,
    "b": 88
  },
  "hsl": {
    "h": 268,
    "s": 74.257,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26842,
    "c": 0.12302,
    "h": 298.7
  },
  "luminance": 0.01621
}

Semantic roles & 50–950 ramp

primary
#300D58
secondary
#64932E
accent
#F1379A
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #300D58

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

Preview Lab → · Contrast checker → · Palette generator →

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