#301A4D#301A4D

#301A4D is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.091 H 300.4°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#301A4D
RGBrgb(48, 26, 77)
HSLhsl(266, 50%, 20%)
HSVhsv(266, 66%, 30%)
CMYKcmyk(37.7%, 66.2%, 0%, 69.8%)
CIE-LABlab(14.97, 23.24, -27.60)
CIE-LCHlch(14.97, 36.09, 310.10°)
OKLaboklab(27.69% 0.046 -0.0783)
OKLCHoklch(27.69% 0.091 300.4)
XYZxyz(2.9276, 1.9030, 7.2328)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A4D #374D1A
analogous
#1A1D4D #301A4D #491A4D
triadic
#301A4D #4D301A #1A4D30
tetradic
#301A4D #4D1A1D #374D1A #1A4D49
square
#301A4D #4D1A1D #374D1A #1A4D49
split-complementary
#301A4D #4D491A #1D4D1A
monochromatic
#0E0817 #130B1F #301A4D #4D297B #6939A9

Accessibility & contrast

On white

15.21
#301A4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301A4D
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A4D#FFFFFF#000000##FFFFFF
##301A4D1.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01254F
Deuteranopia (green-blind)
#09254C
Tritanopia (blue-blind)
#2A2530
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #301a4d;
/* rgb */ color: rgb(48, 26, 77);
/* oklch */ color: oklch(27.7% 0.091 300.4);
Tailwind
colors: {
  custom: {
    50: '#6b577f',
    500: '#301a4d',
    950: '#000000',
  },
}
SCSS
$custom: #301a4d;
$custom-light: #6b577f;
$custom-dark: #000000;
JSON
{
  "hex": "#301a4d",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 77
  },
  "hsl": {
    "h": 265.882,
    "s": 49.515,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27691,
    "c": 0.09081,
    "h": 300.4
  },
  "luminance": 0.01903
}

Semantic roles & 50–950 ramp

primary
#301A4D
secondary
#668340
accent
#D94F9D
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #301A4D

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

Preview Lab → · Contrast checker → · Palette generator →

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