#301442#301442

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

Color values

HEX#301442
RGBrgb(48, 20, 66)
HSLhsl(277, 53%, 17%)
HSVhsv(277, 70%, 26%)
CMYKcmyk(27.3%, 69.7%, 0%, 74.1%)
CIE-LABlab(12.75, 23.83, -23.54)
CIE-LCHlch(12.75, 33.50, 315.35°)
OKLaboklab(25.81% 0.0551 -0.0664)
OKLCHoklch(25.81% 0.086 309.7)
XYZxyz(2.4523, 1.5221, 5.3178)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301442 #264214
analogous
#191442 #301442 #42143D
triadic
#301442 #423014 #144230
tetradic
#301442 #421914 #264214 #143D42
square
#301442 #421914 #264214 #143D42
split-complementary
#301442 #3D4214 #144219
monochromatic
#110717 #110717 #301442 #522271 #7430A0

Accessibility & contrast

On white

16.10
#301442 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##301442#FFFFFF#000000##FFFFFF
##3014421.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)
#022043
Deuteranopia (green-blind)
#0E2141
Tritanopia (blue-blind)
#2E1D28
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #301442;
/* rgb */ color: rgb(48, 20, 66);
/* oklch */ color: oklch(25.8% 0.086 309.7);
Tailwind
colors: {
  custom: {
    50: '#6a5377',
    500: '#301442',
    950: '#000000',
  },
}
SCSS
$custom: #301442;
$custom-light: #6a5377;
$custom-dark: #000000;
JSON
{
  "hex": "#301442",
  "rgb": {
    "r": 48,
    "g": 20,
    "b": 66
  },
  "hsl": {
    "h": 276.522,
    "s": 53.488,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25808,
    "c": 0.08626,
    "h": 309.7
  },
  "luminance": 0.01522
}

Semantic roles & 50–950 ramp

primary
#301442
secondary
#527A38
accent
#DD4B84
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #301442

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

Preview Lab → · Contrast checker → · Palette generator →

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