#301A4C#301A4C

#301A4C is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.6% C 0.089 H 301.0°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#301A4C
RGBrgb(48, 26, 76)
HSLhsl(266, 49%, 20%)
HSVhsv(266, 66%, 30%)
CMYKcmyk(36.8%, 65.8%, 0%, 70.2%)
CIE-LABlab(14.89, 22.94, -27.04)
CIE-LCHlch(14.89, 35.46, 310.31°)
OKLaboklab(27.61% 0.046 -0.0766)
OKLCHoklch(27.61% 0.089 301)
XYZxyz(2.8925, 1.8890, 7.0483)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A4C #364C1A
analogous
#1A1D4C #301A4C #491A4C
triadic
#301A4C #4C301A #1A4C30
tetradic
#301A4C #4C1A1D #364C1A #1A4C49
square
#301A4C #4C1A1D #364C1A #1A4C49
split-complementary
#301A4C #4C491A #1D4C1A
monochromatic
#0E0817 #130A1E #301A4C #4D2A7A #6A39A7

Accessibility & contrast

On white

15.24
#301A4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301A4C
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A4C#FFFFFF#000000##FFFFFF
##301A4C1.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02254E
Deuteranopia (green-blind)
#0B254B
Tritanopia (blue-blind)
#2A2430
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301a4c;
/* rgb */ color: rgb(48, 26, 76);
/* oklch */ color: oklch(27.6% 0.089 301.0);
Tailwind
colors: {
  custom: {
    50: '#6b577e',
    500: '#301a4c',
    950: '#000000',
  },
}
SCSS
$custom: #301a4c;
$custom-light: #6b577e;
$custom-dark: #000000;
JSON
{
  "hex": "#301a4c",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 76
  },
  "hsl": {
    "h": 266.4,
    "s": 49.02,
    "l": 20
  },
  "oklch": {
    "l": 0.27611,
    "c": 0.08941,
    "h": 301
  },
  "luminance": 0.01889
}

Semantic roles & 50–950 ramp

primary
#301A4C
secondary
#658240
accent
#D94F9C
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #301A4C

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

Preview Lab → · Contrast checker → · Palette generator →

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