#301A56#301A56

#301A56 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.103 H 296.0°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#301A56
RGBrgb(48, 26, 86)
HSLhsl(262, 54%, 22%)
HSVhsv(262, 70%, 34%)
CMYKcmyk(44.2%, 69.8%, 0%, 66.3%)
CIE-LABlab(15.69, 25.98, -32.56)
CIE-LCHlch(15.69, 41.66, 308.59°)
OKLaboklab(28.44% 0.0453 -0.0929)
OKLCHoklch(28.44% 0.103 296)
XYZxyz(3.2676, 2.0390, 9.0237)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A56 #40561A
analogous
#1A2256 #301A56 #4E1A56
triadic
#301A56 #56301A #1A5630
tetradic
#301A56 #561A22 #40561A #1A564E
square
#301A56 #561A22 #40561A #1A564E
split-complementary
#301A56 #564E1A #22561A
monochromatic
#0D0717 #160C27 #301A56 #4A2885 #6436B4

Accessibility & contrast

On white

14.92
#301A56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#301A56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A56
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A56#FFFFFF#000000##FFFFFF
##301A561.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002758
Deuteranopia (green-blind)
#002655
Tritanopia (blue-blind)
#262835
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #301a56;
/* rgb */ color: rgb(48, 26, 86);
/* oklch */ color: oklch(28.4% 0.103 296.0);
Tailwind
colors: {
  custom: {
    50: '#6c5886',
    500: '#301a56',
    950: '#000000',
  },
}
SCSS
$custom: #301a56;
$custom-light: #6c5886;
$custom-dark: #000000;
JSON
{
  "hex": "#301a56",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 86
  },
  "hsl": {
    "h": 262,
    "s": 53.571,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28443,
    "c": 0.10334,
    "h": 296
  },
  "luminance": 0.02039
}

Semantic roles & 50–950 ramp

primary
#301A56
secondary
#708C40
accent
#DD4BA7
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301A56

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

Preview Lab → · Contrast checker → · Palette generator →

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