#300B4F#300B4F

#300B4F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.7% C 0.115 H 303.7°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#300B4F
RGBrgb(48, 11, 79)
HSLhsl(273, 76%, 18%)
HSVhsv(273, 86%, 31%)
CMYKcmyk(39.2%, 86.1%, 0%, 69%)
CIE-LABlab(12.17, 32.06, -33.51)
CIE-LCHlch(12.17, 46.38, 313.73°)
OKLaboklab(25.74% 0.0637 -0.0956)
OKLCHoklch(25.74% 0.115 303.7)
XYZxyz(2.7495, 1.4322, 7.5272)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300B4F #2A4F0B
analogous
#0E0B4F #300B4F #4F0B4C
triadic
#300B4F #4F300B #0B4F30
tetradic
#300B4F #4F0E0B #2A4F0B #0B4C4F
square
#300B4F #4F0E0B #2A4F0B #0B4C4F
split-complementary
#300B4F #4C4F0B #0B4F0E
monochromatic
#10041B #10041B #300B4F #511285 #711ABA

Accessibility & contrast

On white

16.32
#300B4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#300B4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300B4F
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300B4F#FFFFFF#000000##FFFFFF
##300B4F1.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F51
Deuteranopia (green-blind)
#00204E
Tritanopia (blue-blind)
#2A1D2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #300b4f;
/* rgb */ color: rgb(48, 11, 79);
/* oklch */ color: oklch(25.7% 0.115 303.7);
Tailwind
colors: {
  custom: {
    50: '#6c4f81',
    500: '#300b4f',
    950: '#000000',
  },
}
SCSS
$custom: #300b4f;
$custom-light: #6c4f81;
$custom-dark: #000000;
JSON
{
  "hex": "#300b4f",
  "rgb": {
    "r": 48,
    "g": 11,
    "b": 79
  },
  "hsl": {
    "h": 272.647,
    "s": 75.556,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25744,
    "c": 0.11488,
    "h": 303.7
  },
  "luminance": 0.01432
}

Semantic roles & 50–950 ramp

primary
#300B4F
secondary
#578B2B
accent
#F2368C
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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