#301243#301243

#301243 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.091 H 309.6°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#301243
RGBrgb(48, 18, 67)
HSLhsl(277, 58%, 17%)
HSVhsv(277, 73%, 26%)
CMYKcmyk(28.4%, 73.1%, 0%, 73.7%)
CIE-LABlab(12.39, 25.28, -24.81)
CIE-LCHlch(12.39, 35.43, 315.54°)
OKLaboklab(25.58% 0.0579 -0.0701)
OKLCHoklch(25.58% 0.091 309.6)
XYZxyz(2.4482, 1.4663, 5.4632)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301243 #254312
analogous
#181243 #301243 #43123E
triadic
#301243 #433012 #124330
tetradic
#301243 #431812 #254312 #123E43
square
#301243 #431812 #254312 #123E43
split-complementary
#301243 #3E4312 #124318
monochromatic
#110618 #110618 #301243 #531F73 #752CA3

Accessibility & contrast

On white

16.24
#301243 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301243
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301243#FFFFFF#000000##FFFFFF
##3012431.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F44
Deuteranopia (green-blind)
#0B2142
Tritanopia (blue-blind)
#2D1C28
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #301243;
/* rgb */ color: rgb(48, 18, 67);
/* oklch */ color: oklch(25.6% 0.091 309.6);
Tailwind
colors: {
  custom: {
    50: '#6a5277',
    500: '#301243',
    950: '#000000',
  },
}
SCSS
$custom: #301243;
$custom-light: #6a5277;
$custom-dark: #000000;
JSON
{
  "hex": "#301243",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 67
  },
  "hsl": {
    "h": 276.735,
    "s": 57.647,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25575,
    "c": 0.09092,
    "h": 309.6
  },
  "luminance": 0.01466
}

Semantic roles & 50–950 ramp

primary
#301243
secondary
#507C35
accent
#E14783
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #301243

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

Preview Lab → · Contrast checker → · Palette generator →

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