#301241#301241

#301241 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.088 H 311.1°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#301241
RGBrgb(48, 18, 65)
HSLhsl(278, 57%, 16%)
HSVhsv(278, 72%, 25%)
CMYKcmyk(26.2%, 72.3%, 0%, 74.5%)
CIE-LABlab(12.24, 24.75, -23.65)
CIE-LCHlch(12.24, 34.23, 316.30°)
OKLaboklab(25.42% 0.0581 -0.0667)
OKLCHoklch(25.42% 0.088 311.1)
XYZxyz(2.3892, 1.4427, 5.1526)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301241 #234112
analogous
#191241 #301241 #41123B
triadic
#301241 #413012 #124130
tetradic
#301241 #411912 #234112 #123B41
square
#301241 #411912 #234112 #123B41
split-complementary
#301241 #3B4112 #124119
monochromatic
#120718 #120718 #301241 #531F71 #772DA1

Accessibility & contrast

On white

16.30
#301241 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#301241 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301241
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301241#FFFFFF#000000##FFFFFF
##3012411.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F42
Deuteranopia (green-blind)
#0D2140
Tritanopia (blue-blind)
#2E1B27
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #301241;
/* rgb */ color: rgb(48, 18, 65);
/* oklch */ color: oklch(25.4% 0.088 311.1);
Tailwind
colors: {
  custom: {
    50: '#6a5276',
    500: '#301241',
    950: '#000000',
  },
}
SCSS
$custom: #301241;
$custom-light: #6a5276;
$custom-dark: #000000;
JSON
{
  "hex": "#301241",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 65
  },
  "hsl": {
    "h": 278.298,
    "s": 56.627,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25416,
    "c": 0.08841,
    "h": 311.1
  },
  "luminance": 0.01443
}

Semantic roles & 50–950 ramp

primary
#301241
secondary
#4E7A35
accent
#E0487F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #301241

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

Preview Lab → · Contrast checker → · Palette generator →

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