#301A4E#301A4E

#301A4E is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.092 H 299.9°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#301A4E
RGBrgb(48, 26, 78)
HSLhsl(265, 50%, 20%)
HSVhsv(265, 67%, 31%)
CMYKcmyk(38.5%, 66.7%, 0%, 69.4%)
CIE-LABlab(15.05, 23.54, -28.16)
CIE-LCHlch(15.05, 36.71, 309.89°)
OKLaboklab(27.77% 0.046 -0.0799)
OKLCHoklch(27.77% 0.092 299.9)
XYZxyz(2.9631, 1.9172, 7.4202)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A4E #384E1A
analogous
#1A1E4E #301A4E #4A1A4E
triadic
#301A4E #4E301A #1A4E30
tetradic
#301A4E #4E1A1E #384E1A #1A4E4A
square
#301A4E #4E1A1E #384E1A #1A4E4A
split-complementary
#301A4E #4E4A1A #1E4E1A
monochromatic
#0E0817 #140B20 #301A4E #4C297C #6839AA

Accessibility & contrast

On white

15.18
#301A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#301A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A4E
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A4E#FFFFFF#000000##FFFFFF
##301A4E1.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002650
Deuteranopia (green-blind)
#08254D
Tritanopia (blue-blind)
#2A2531
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #301a4e;
/* rgb */ color: rgb(48, 26, 78);
/* oklch */ color: oklch(27.8% 0.092 299.9);
Tailwind
colors: {
  custom: {
    50: '#6b5880',
    500: '#301a4e',
    950: '#000000',
  },
}
SCSS
$custom: #301a4e;
$custom-light: #6b5880;
$custom-dark: #000000;
JSON
{
  "hex": "#301a4e",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 265.385,
    "s": 50,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27771,
    "c": 0.09222,
    "h": 299.9
  },
  "luminance": 0.01917
}

Semantic roles & 50–950 ramp

primary
#301A4E
secondary
#678440
accent
#DA4E9F
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #301A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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