#300F50#300F50

#300F50 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.3% C 0.111 H 302.3°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#300F50
RGBrgb(48, 15, 80)
HSLhsl(270, 68%, 19%)
HSVhsv(270, 81%, 31%)
CMYKcmyk(40%, 81.3%, 0%, 68.6%)
CIE-LABlab(12.92, 30.46, -32.98)
CIE-LCHlch(12.92, 44.90, 312.73°)
OKLaboklab(26.3% 0.0595 -0.094)
OKLCHoklch(26.3% 0.111 302.3)
XYZxyz(2.8374, 1.5492, 7.7374)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300F50 #2F500F
analogous
#100F50 #300F50 #500F4F
triadic
#300F50 #50300F #0F5030
tetradic
#300F50 #50100F #2F500F #0F4F50
square
#300F50 #50100F #2F500F #0F4F50
split-complementary
#300F50 #4F500F #0F5010
monochromatic
#0F051A #11051C #300F50 #4F1984 #6E22B7

Accessibility & contrast

On white

16.03
#300F50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#300F50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300F50
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300F50#FFFFFF#000000##FFFFFF
##300F501.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002152
Deuteranopia (green-blind)
#00214F
Tritanopia (blue-blind)
#291F2E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #300f50;
/* rgb */ color: rgb(48, 15, 80);
/* oklch */ color: oklch(26.3% 0.111 302.3);
Tailwind
colors: {
  custom: {
    50: '#6c5182',
    500: '#300f50',
    950: '#000000',
  },
}
SCSS
$custom: #300f50;
$custom-light: #6c5182;
$custom-dark: #000000;
JSON
{
  "hex": "#300f50",
  "rgb": {
    "r": 48,
    "g": 15,
    "b": 80
  },
  "hsl": {
    "h": 270.462,
    "s": 68.421,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26298,
    "c": 0.11127,
    "h": 302.3
  },
  "luminance": 0.01549
}

Semantic roles & 50–950 ramp

primary
#300F50
secondary
#5D8A31
accent
#EB3D93
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300F50

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

Preview Lab → · Contrast checker → · Palette generator →

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