#301A41#301A41

#301A41 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.074 H 308.3°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#301A41
RGBrgb(48, 26, 65)
HSLhsl(274, 43%, 18%)
HSVhsv(274, 60%, 25%)
CMYKcmyk(26.2%, 60%, 0%, 74.5%)
CIE-LABlab(14.11, 19.75, -20.66)
CIE-LCHlch(14.11, 28.58, 313.70°)
OKLaboklab(26.78% 0.0457 -0.058)
OKLCHoklch(26.78% 0.074 308.3)
XYZxyz(2.5423, 1.7489, 5.2036)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A41 #2B411A
analogous
#1C1A41 #301A41 #411A3E
triadic
#301A41 #41301A #1A4130
tetradic
#301A41 #411C1A #2B411A #1A3E41
square
#301A41 #411C1A #2B411A #1A3E41
split-complementary
#301A41 #3E411A #1A411C
monochromatic
#100916 #100916 #301A41 #502B6D #713D98

Accessibility & contrast

On white

15.56
#301A41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#301A41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A41
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A41#FFFFFF#000000##FFFFFF
##301A411.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2342
Deuteranopia (green-blind)
#152440
Tritanopia (blue-blind)
#2E212A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #301a41;
/* rgb */ color: rgb(48, 26, 65);
/* oklch */ color: oklch(26.8% 0.074 308.3);
Tailwind
colors: {
  custom: {
    50: '#6a5776',
    500: '#301a41',
    950: '#000000',
  },
}
SCSS
$custom: #301a41;
$custom-light: #6a5776;
$custom-dark: #000000;
JSON
{
  "hex": "#301a41",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 65
  },
  "hsl": {
    "h": 273.846,
    "s": 42.857,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26783,
    "c": 0.07381,
    "h": 308.3
  },
  "luminance": 0.01749
}

Semantic roles & 50–950 ramp

primary
#301A41
secondary
#587740
accent
#D3558C
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #301A41

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

Preview Lab → · Contrast checker → · Palette generator →

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