#301246#301246

#301246 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.095 H 307.5°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#301246
RGBrgb(48, 18, 70)
HSLhsl(275, 59%, 17%)
HSVhsv(275, 74%, 27%)
CMYKcmyk(31.4%, 74.3%, 0%, 72.5%)
CIE-LABlab(12.63, 26.10, -26.53)
CIE-LCHlch(12.63, 37.22, 314.53°)
OKLaboklab(25.82% 0.0577 -0.0751)
OKLCHoklch(25.82% 0.095 307.5)
XYZxyz(2.5405, 1.5032, 5.9495)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301246 #284612
analogous
#161246 #301246 #461242
triadic
#301246 #463012 #124630
tetradic
#301246 #461612 #284612 #124246
square
#301246 #461612 #284612 #124246
split-complementary
#301246 #424612 #124616
monochromatic
#110618 #110618 #301246 #511F77 #732BA7

Accessibility & contrast

On white

16.15
#301246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#301246 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301246
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301246#FFFFFF#000000##FFFFFF
##3012461.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002048
Deuteranopia (green-blind)
#072145
Tritanopia (blue-blind)
#2C1D2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #301246;
/* rgb */ color: rgb(48, 18, 70);
/* oklch */ color: oklch(25.8% 0.095 307.5);
Tailwind
colors: {
  custom: {
    50: '#6b527a',
    500: '#301246',
    950: '#000000',
  },
}
SCSS
$custom: #301246;
$custom-light: #6b527a;
$custom-dark: #000000;
JSON
{
  "hex": "#301246",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 274.615,
    "s": 59.091,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25821,
    "c": 0.0947,
    "h": 307.5
  },
  "luminance": 0.01503
}

Semantic roles & 50–950 ramp

primary
#301246
secondary
#547F35
accent
#E24688
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #301246

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

Preview Lab → · Contrast checker → · Palette generator →

#301246 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva