#301A5A#301A5A

#301A5A is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.109 H 294.3°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#301A5A
RGBrgb(48, 26, 90)
HSLhsl(261, 55%, 23%)
HSVhsv(261, 71%, 35%)
CMYKcmyk(46.7%, 71.1%, 0%, 64.7%)
CIE-LABlab(16.03, 27.22, -34.70)
CIE-LCHlch(16.03, 44.10, 308.11°)
OKLaboklab(28.8% 0.0448 -0.0991)
OKLCHoklch(28.8% 0.109 294.3)
XYZxyz(3.4333, 2.1053, 9.8963)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A5A #445A1A
analogous
#1A245A #301A5A #501A5A
triadic
#301A5A #5A301A #1A5A30
tetradic
#301A5A #5A1A24 #445A1A #1A5A50
square
#301A5A #5A1A24 #445A1A #1A5A50
split-complementary
#301A5A #5A501A #245A1A
monochromatic
#0D0718 #170C2B #301A5A #492889 #6335B9

Accessibility & contrast

On white

14.78
#301A5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#301A5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A5A
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A5A#FFFFFF#000000##FFFFFF
##301A5A1.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285C
Deuteranopia (green-blind)
#002759
Tritanopia (blue-blind)
#242937
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #301a5a;
/* rgb */ color: rgb(48, 26, 90);
/* oklch */ color: oklch(28.8% 0.109 294.3);
Tailwind
colors: {
  custom: {
    50: '#6d5889',
    500: '#301a5a',
    950: '#000000',
  },
}
SCSS
$custom: #301a5a;
$custom-light: #6d5889;
$custom-dark: #000000;
JSON
{
  "hex": "#301a5a",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 90
  },
  "hsl": {
    "h": 260.625,
    "s": 55.172,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28795,
    "c": 0.10881,
    "h": 294.3
  },
  "luminance": 0.02105
}

Semantic roles & 50–950 ramp

primary
#301A5A
secondary
#749040
accent
#DF49AB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301A5A

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

Preview Lab → · Contrast checker → · Palette generator →

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