#300F52#300F52

#300F52 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.114 H 301.2°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#300F52
RGBrgb(48, 15, 82)
HSLhsl(270, 69%, 19%)
HSVhsv(270, 82%, 32%)
CMYKcmyk(41.5%, 81.7%, 0%, 67.8%)
CIE-LABlab(13.10, 31.02, -34.05)
CIE-LCHlch(13.10, 46.06, 312.33°)
OKLaboklab(26.49% 0.0589 -0.0972)
OKLCHoklch(26.49% 0.114 301.2)
XYZxyz(2.9124, 1.5792, 8.1324)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300F52 #31520F
analogous
#0F1052 #300F52 #520F52
triadic
#300F52 #52300F #0F5230
tetradic
#300F52 #520F10 #31520F #0F5252
square
#300F52 #520F10 #31520F #0F5252
split-complementary
#300F52 #52520F #10520F
monochromatic
#0F051A #12061E #300F52 #4E1886 #6D22B9

Accessibility & contrast

On white

15.96
#300F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300F52
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300F52#FFFFFF#000000##FFFFFF
##300F521.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#282030
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #300f52;
/* rgb */ color: rgb(48, 15, 82);
/* oklch */ color: oklch(26.5% 0.114 301.2);
Tailwind
colors: {
  custom: {
    50: '#6c5183',
    500: '#300f52',
    950: '#000000',
  },
}
SCSS
$custom: #300f52;
$custom-light: #6c5183;
$custom-dark: #000000;
JSON
{
  "hex": "#300f52",
  "rgb": {
    "r": 48,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 269.552,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26486,
    "c": 0.11367,
    "h": 301.2
  },
  "luminance": 0.01579
}

Semantic roles & 50–950 ramp

primary
#300F52
secondary
#5F8C31
accent
#EC3C95
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #300F52

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

Preview Lab → · Contrast checker → · Palette generator →

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