#300F45#300F45

#300F45 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.098 H 309.0°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#300F45
RGBrgb(48, 15, 69)
HSLhsl(277, 64%, 16%)
HSVhsv(277, 78%, 27%)
CMYKcmyk(30.4%, 78.3%, 0%, 72.9%)
CIE-LABlab(11.96, 27.48, -26.92)
CIE-LCHlch(11.96, 38.47, 315.58°)
OKLaboklab(25.31% 0.0617 -0.0762)
OKLCHoklch(25.31% 0.098 309)
XYZxyz(2.4637, 1.3997, 5.7695)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300F45 #24450F
analogous
#150F45 #300F45 #450F3F
triadic
#300F45 #45300F #0F4530
tetradic
#300F45 #45150F #24450F #0F3F45
square
#300F45 #45150F #24450F #0F3F45
split-complementary
#300F45 #3F450F #0F4515
monochromatic
#110519 #110519 #300F45 #531A77 #7625AA

Accessibility & contrast

On white

16.41
#300F45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#300F45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300F45
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300F45#FFFFFF#000000##FFFFFF
##300F451.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E47
Deuteranopia (green-blind)
#052044
Tritanopia (blue-blind)
#2D1B28
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #300f45;
/* rgb */ color: rgb(48, 15, 69);
/* oklch */ color: oklch(25.3% 0.098 309.0);
Tailwind
colors: {
  custom: {
    50: '#6b5079',
    500: '#300f45',
    950: '#000000',
  },
}
SCSS
$custom: #300f45;
$custom-light: #6b5079;
$custom-dark: #000000;
JSON
{
  "hex": "#300f45",
  "rgb": {
    "r": 48,
    "g": 15,
    "b": 69
  },
  "hsl": {
    "h": 276.667,
    "s": 64.286,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25314,
    "c": 0.09807,
    "h": 309
  },
  "luminance": 0.014
}

Semantic roles & 50–950 ramp

primary
#300F45
secondary
#4F7F30
accent
#E74181
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #300F45

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

Preview Lab → · Contrast checker → · Palette generator →

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