#300F49#300F49

#300F49 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.103 H 306.4°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#300F49
RGBrgb(48, 15, 73)
HSLhsl(274, 66%, 17%)
HSVhsv(274, 79%, 29%)
CMYKcmyk(34.2%, 79.5%, 0%, 71.4%)
CIE-LABlab(12.29, 28.55, -29.16)
CIE-LCHlch(12.29, 40.81, 314.39°)
OKLaboklab(25.66% 0.061 -0.0828)
OKLCHoklch(25.66% 0.103 306.4)
XYZxyz(2.5921, 1.4511, 6.4456)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300F49 #28490F
analogous
#130F49 #300F49 #490F45
triadic
#300F49 #49300F #0F4930
tetradic
#300F49 #49130F #28490F #0F4549
square
#300F49 #49130F #28490F #0F4549
split-complementary
#300F49 #45490F #0F4913
monochromatic
#110519 #110519 #300F49 #51197C #7324AF

Accessibility & contrast

On white

16.28
#300F49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300F49
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300F49#FFFFFF#000000##FFFFFF
##300F491.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4B
Deuteranopia (green-blind)
#002048
Tritanopia (blue-blind)
#2C1D2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #300f49;
/* rgb */ color: rgb(48, 15, 73);
/* oklch */ color: oklch(25.7% 0.103 306.4);
Tailwind
colors: {
  custom: {
    50: '#6b517c',
    500: '#300f49',
    950: '#000000',
  },
}
SCSS
$custom: #300f49;
$custom-light: #6b517c;
$custom-dark: #000000;
JSON
{
  "hex": "#300f49",
  "rgb": {
    "r": 48,
    "g": 15,
    "b": 73
  },
  "hsl": {
    "h": 274.138,
    "s": 65.909,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25661,
    "c": 0.10287,
    "h": 306.4
  },
  "luminance": 0.01451
}

Semantic roles & 50–950 ramp

primary
#300F49
secondary
#548330
accent
#E93F88
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #300F49

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

Preview Lab → · Contrast checker → · Palette generator →

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