#301340#301340

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

Color values

HEX#301340
RGBrgb(48, 19, 64)
HSLhsl(279, 54%, 16%)
HSVhsv(279, 70%, 25%)
CMYKcmyk(25%, 70.3%, 0%, 74.9%)
CIE-LABlab(12.38, 23.89, -22.72)
CIE-LCHlch(12.38, 32.97, 316.44°)
OKLaboklab(25.49% 0.0567 -0.0639)
OKLCHoklch(25.49% 0.085 311.5)
XYZxyz(2.3770, 1.4643, 5.0069)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301340 #234013
analogous
#1A1340 #301340 #40133A
triadic
#301340 #403013 #134030
tetradic
#301340 #401A13 #234013 #133A40
square
#301340 #401A13 #234013 #133A40
split-complementary
#301340 #3A4013 #13401A
monochromatic
#120718 #120718 #301340 #53216F #772F9E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##301340#FFFFFF#000000##FFFFFF
##3013401.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)
#031F41
Deuteranopia (green-blind)
#0F213F
Tritanopia (blue-blind)
#2E1C27
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #301340;
/* rgb */ color: rgb(48, 19, 64);
/* oklch */ color: oklch(25.5% 0.085 311.5);
Tailwind
colors: {
  custom: {
    50: '#6a5375',
    500: '#301340',
    950: '#000000',
  },
}
SCSS
$custom: #301340;
$custom-light: #6a5375;
$custom-dark: #000000;
JSON
{
  "hex": "#301340",
  "rgb": {
    "r": 48,
    "g": 19,
    "b": 64
  },
  "hsl": {
    "h": 278.667,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25494,
    "c": 0.08543,
    "h": 311.5
  },
  "luminance": 0.01464
}

Semantic roles & 50–950 ramp

primary
#301340
secondary
#4E7936
accent
#DE4A7F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #301340

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

Preview Lab → · Contrast checker → · Palette generator →

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