#301440#301440

#301440 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.084 H 311.2°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#301440
RGBrgb(48, 20, 64)
HSLhsl(278, 52%, 16%)
HSVhsv(278, 69%, 25%)
CMYKcmyk(25%, 68.8%, 0%, 74.9%)
CIE-LABlab(12.60, 23.29, -22.37)
CIE-LCHlch(12.60, 32.29, 316.16°)
OKLaboklab(25.66% 0.0552 -0.0629)
OKLCHoklch(25.66% 0.084 311.2)
XYZxyz(2.3943, 1.4989, 5.0127)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301440 #244014
analogous
#1A1440 #301440 #40143A
triadic
#301440 #403014 #144030
tetradic
#301440 #401A14 #244014 #143A40
square
#301440 #401A14 #244014 #143A40
split-complementary
#301440 #3A4014 #14401A
monochromatic
#110717 #110717 #301440 #53236F #76319D

Accessibility & contrast

On white

16.16
#301440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301440
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301440#FFFFFF#000000##FFFFFF
##3014401.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041F41
Deuteranopia (green-blind)
#10213F
Tritanopia (blue-blind)
#2E1C27
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #301440;
/* rgb */ color: rgb(48, 20, 64);
/* oklch */ color: oklch(25.7% 0.084 311.2);
Tailwind
colors: {
  custom: {
    50: '#6a5375',
    500: '#301440',
    950: '#000000',
  },
}
SCSS
$custom: #301440;
$custom-light: #6a5375;
$custom-dark: #000000;
JSON
{
  "hex": "#301440",
  "rgb": {
    "r": 48,
    "g": 20,
    "b": 64
  },
  "hsl": {
    "h": 278.182,
    "s": 52.381,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25655,
    "c": 0.08366,
    "h": 311.2
  },
  "luminance": 0.01499
}

Semantic roles & 50–950 ramp

primary
#301440
secondary
#4F7838
accent
#DC4C80
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #301440

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

Preview Lab → · Contrast checker → · Palette generator →

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