#301D4D#301D4D

#301D4D is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.086 H 299.1°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#301D4D
RGBrgb(48, 29, 77)
HSLhsl(264, 45%, 21%)
HSVhsv(264, 62%, 30%)
CMYKcmyk(37.7%, 62.3%, 0%, 69.8%)
CIE-LABlab(15.71, 21.29, -26.41)
CIE-LCHlch(15.71, 33.92, 308.87°)
OKLaboklab(28.23% 0.0416 -0.0748)
OKLCHoklch(28.23% 0.086 299.1)
XYZxyz(2.9975, 2.0429, 7.2561)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D4D #3A4D1D
analogous
#1D224D #301D4D #481D4D
triadic
#301D4D #4D301D #1D4D30
tetradic
#301D4D #4D1D22 #3A4D1D #1D4D48
square
#301D4D #4D1D22 #3A4D1D #1D4D48
split-complementary
#301D4D #4D481D #224D1D
monochromatic
#0E0816 #140C21 #301D4D #4C2E79 #673EA6

Accessibility & contrast

On white

14.91
#301D4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#301D4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D4D
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D4D#FFFFFF#000000##FFFFFF
##301D4D1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07274F
Deuteranopia (green-blind)
#0E274C
Tritanopia (blue-blind)
#2A2731
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #301d4d;
/* rgb */ color: rgb(48, 29, 77);
/* oklch */ color: oklch(28.2% 0.086 299.1);
Tailwind
colors: {
  custom: {
    50: '#6b5a7f',
    500: '#301d4d',
    950: '#000000',
  },
}
SCSS
$custom: #301d4d;
$custom-light: #6b5a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#301d4d",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 77
  },
  "hsl": {
    "h": 263.75,
    "s": 45.283,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28233,
    "c": 0.0856,
    "h": 299.1
  },
  "luminance": 0.02043
}

Semantic roles & 50–950 ramp

primary
#301D4D
secondary
#698244
accent
#D553A1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #301D4D

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

Preview Lab → · Contrast checker → · Palette generator →

#301D4D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva