#300F4E#300F4E

#300F4E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.109 H 303.4°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#300F4E
RGBrgb(48, 15, 78)
HSLhsl(271, 68%, 18%)
HSVhsv(271, 81%, 31%)
CMYKcmyk(38.5%, 80.8%, 0%, 69.4%)
CIE-LABlab(12.74, 29.91, -31.91)
CIE-LCHlch(12.74, 43.73, 313.15°)
OKLaboklab(26.11% 0.06 -0.0909)
OKLCHoklch(26.11% 0.109 303.4)
XYZxyz(2.7646, 1.5201, 7.3540)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300F4E #2D4E0F
analogous
#110F4E #300F4E #4E0F4C
triadic
#300F4E #4E300F #0F4E30
tetradic
#300F4E #4E110F #2D4E0F #0F4C4E
square
#300F4E #4E110F #2D4E0F #0F4C4E
split-complementary
#300F4E #4C4E0F #0F4E11
monochromatic
#10051A #10051B #300F4E #501981 #6F23B5

Accessibility & contrast

On white

16.10
#300F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#300F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300F4E
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300F4E#FFFFFF#000000##FFFFFF
##300F4E1.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002050
Deuteranopia (green-blind)
#00214D
Tritanopia (blue-blind)
#2A1F2D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #300f4e;
/* rgb */ color: rgb(48, 15, 78);
/* oklch */ color: oklch(26.1% 0.109 303.4);
Tailwind
colors: {
  custom: {
    50: '#6c5180',
    500: '#300f4e',
    950: '#000000',
  },
}
SCSS
$custom: #300f4e;
$custom-light: #6c5180;
$custom-dark: #000000;
JSON
{
  "hex": "#300f4e",
  "rgb": {
    "r": 48,
    "g": 15,
    "b": 78
  },
  "hsl": {
    "h": 271.429,
    "s": 67.742,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26112,
    "c": 0.10888,
    "h": 303.4
  },
  "luminance": 0.0152
}

Semantic roles & 50–950 ramp

primary
#300F4E
secondary
#5A8831
accent
#EB3D90
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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