#300F5E#300F5E

#300F5E is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.128 H 295.6°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#300F5E
RGBrgb(48, 15, 94)
HSLhsl(265, 72%, 21%)
HSVhsv(265, 84%, 37%)
CMYKcmyk(48.9%, 84%, 0%, 63.1%)
CIE-LABlab(14.28, 34.40, -40.24)
CIE-LCHlch(14.28, 52.94, 310.53°)
OKLaboklab(27.67% 0.0553 -0.1153)
OKLCHoklch(27.67% 0.128 295.6)
XYZxyz(3.4096, 1.7781, 10.7511)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300F5E #3D5E0F
analogous
#0F165E #300F5E #580F5E
triadic
#300F5E #5E300F #0F5E30
tetradic
#300F5E #5E0F16 #3D5E0F #0F5E58
square
#300F5E #5E0F16 #3D5E0F #0F5E58
split-complementary
#300F5E #5E580F #165E0F
monochromatic
#0D041A #150729 #300F5E #4B1793 #6620C8

Accessibility & contrast

On white

15.49
#300F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#300F5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300F5E
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300F5E#FFFFFF#000000##FFFFFF
##300F5E1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#00235D
Tritanopia (blue-blind)
#232536
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #300f5e;
/* rgb */ color: rgb(48, 15, 94);
/* oklch */ color: oklch(27.7% 0.128 295.6);
Tailwind
colors: {
  custom: {
    50: '#6e528c',
    500: '#300f5e',
    950: '#000000',
  },
}
SCSS
$custom: #300f5e;
$custom-light: #6e528c;
$custom-dark: #000000;
JSON
{
  "hex": "#300f5e",
  "rgb": {
    "r": 48,
    "g": 15,
    "b": 94
  },
  "hsl": {
    "h": 265.063,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27669,
    "c": 0.12791,
    "h": 295.6
  },
  "luminance": 0.01778
}

Semantic roles & 50–950 ramp

primary
#300F5E
secondary
#6D9731
accent
#EF39A3
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #300F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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