#301D4E#301D4E

#301D4E is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.3% C 0.087 H 298.6°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#301D4E
RGBrgb(48, 29, 78)
HSLhsl(263, 46%, 21%)
HSVhsv(263, 63%, 31%)
CMYKcmyk(38.5%, 62.8%, 0%, 69.4%)
CIE-LABlab(15.78, 21.59, -26.98)
CIE-LCHlch(15.78, 34.56, 308.67°)
OKLaboklab(28.31% 0.0417 -0.0765)
OKLCHoklch(28.31% 0.087 298.6)
XYZxyz(3.0331, 2.0571, 7.4435)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D4E #3B4E1D
analogous
#1D224E #301D4E #481D4E
triadic
#301D4E #4E301D #1D4E30
tetradic
#301D4E #4E1D22 #3B4E1D #1D4E48
square
#301D4E #4E1D22 #3B4E1D #1D4E48
split-complementary
#301D4E #4E481D #224E1D
monochromatic
#0E0816 #150C21 #301D4E #4B2E7B #673EA7

Accessibility & contrast

On white

14.88
#301D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301D4E
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D4E#FFFFFF#000000##FFFFFF
##301D4E1.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062750
Deuteranopia (green-blind)
#0D274D
Tritanopia (blue-blind)
#292732
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #301d4e;
/* rgb */ color: rgb(48, 29, 78);
/* oklch */ color: oklch(28.3% 0.087 298.6);
Tailwind
colors: {
  custom: {
    50: '#6b5a80',
    500: '#301d4e',
    950: '#000000',
  },
}
SCSS
$custom: #301d4e;
$custom-light: #6b5a80;
$custom-dark: #000000;
JSON
{
  "hex": "#301d4e",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 78
  },
  "hsl": {
    "h": 263.265,
    "s": 45.794,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28311,
    "c": 0.08707,
    "h": 298.6
  },
  "luminance": 0.02057
}

Semantic roles & 50–950 ramp

primary
#301D4E
secondary
#6B8344
accent
#D552A3
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #301D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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