#301A4B#301A4B

#301A4B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.5% C 0.088 H 301.6°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#301A4B
RGBrgb(48, 26, 75)
HSLhsl(267, 49%, 20%)
HSVhsv(267, 65%, 29%)
CMYKcmyk(36%, 65.3%, 0%, 70.6%)
CIE-LABlab(14.82, 22.64, -26.47)
CIE-LCHlch(14.82, 34.84, 310.54°)
OKLaboklab(27.53% 0.0461 -0.075)
OKLCHoklch(27.53% 0.088 301.6)
XYZxyz(2.8580, 1.8752, 6.8666)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A4B #354B1A
analogous
#1A1C4B #301A4B #491A4B
triadic
#301A4B #4B301A #1A4B30
tetradic
#301A4B #4B1A1C #354B1A #1A4B49
square
#301A4B #4B1A1C #354B1A #1A4B49
split-complementary
#301A4B #4B491A #1C4B1A
monochromatic
#0F0817 #130A1E #301A4B #4D2A78 #6A3AA6

Accessibility & contrast

On white

15.27
#301A4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301A4B
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A4B#FFFFFF#000000##FFFFFF
##301A4B1.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03254D
Deuteranopia (green-blind)
#0C254A
Tritanopia (blue-blind)
#2B242F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301a4b;
/* rgb */ color: rgb(48, 26, 75);
/* oklch */ color: oklch(27.5% 0.088 301.6);
Tailwind
colors: {
  custom: {
    50: '#6b577e',
    500: '#301a4b',
    950: '#000000',
  },
}
SCSS
$custom: #301a4b;
$custom-light: #6b577e;
$custom-dark: #000000;
JSON
{
  "hex": "#301a4b",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 75
  },
  "hsl": {
    "h": 266.939,
    "s": 48.515,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27531,
    "c": 0.088,
    "h": 301.6
  },
  "luminance": 0.01875
}

Semantic roles & 50–950 ramp

primary
#301A4B
secondary
#648140
accent
#D8509B
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #301A4B

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

Preview Lab → · Contrast checker → · Palette generator →

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