#300F48#300F48

#300F48 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.102 H 307.0°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#300F48
RGBrgb(48, 15, 72)
HSLhsl(275, 66%, 17%)
HSVhsv(275, 79%, 28%)
CMYKcmyk(33.3%, 79.2%, 0%, 71.8%)
CIE-LABlab(12.21, 28.28, -28.61)
CIE-LCHlch(12.21, 40.22, 314.67°)
OKLaboklab(25.57% 0.0612 -0.0812)
OKLCHoklch(25.57% 0.102 307)
XYZxyz(2.5592, 1.4379, 6.2724)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300F48 #27480F
analogous
#140F48 #300F48 #480F44
triadic
#300F48 #48300F #0F4830
tetradic
#300F48 #48140F #27480F #0F4448
square
#300F48 #48140F #27480F #0F4448
split-complementary
#300F48 #44480F #0F4814
monochromatic
#110519 #110519 #300F48 #521A7B #7424AD

Accessibility & contrast

On white

16.31
#300F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300F48
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300F48#FFFFFF#000000##FFFFFF
##300F481.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4A
Deuteranopia (green-blind)
#012047
Tritanopia (blue-blind)
#2C1C2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #300f48;
/* rgb */ color: rgb(48, 15, 72);
/* oklch */ color: oklch(25.6% 0.102 307.0);
Tailwind
colors: {
  custom: {
    50: '#6b517b',
    500: '#300f48',
    950: '#000000',
  },
}
SCSS
$custom: #300f48;
$custom-light: #6b517b;
$custom-dark: #000000;
JSON
{
  "hex": "#300f48",
  "rgb": {
    "r": 48,
    "g": 15,
    "b": 72
  },
  "hsl": {
    "h": 274.737,
    "s": 65.517,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25573,
    "c": 0.10167,
    "h": 307
  },
  "luminance": 0.01438
}

Semantic roles & 50–950 ramp

primary
#300F48
secondary
#538230
accent
#E83F87
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #300F48

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

Preview Lab → · Contrast checker → · Palette generator →

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