#301D56#301D56

#301D56 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.0% C 0.099 H 294.8°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#301D56
RGBrgb(48, 29, 86)
HSLhsl(260, 50%, 23%)
HSVhsv(260, 66%, 34%)
CMYKcmyk(44.2%, 66.3%, 0%, 66.3%)
CIE-LABlab(16.40, 24.08, -31.41)
CIE-LCHlch(16.40, 39.58, 307.47°)
OKLaboklab(28.96% 0.0414 -0.0895)
OKLCHoklch(28.96% 0.099 294.8)
XYZxyz(3.3376, 2.1789, 9.0470)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D56 #43561D
analogous
#1D2756 #301D56 #4C1D56
triadic
#301D56 #56301D #1D5630
tetradic
#301D56 #561D27 #43561D #1D564C
square
#301D56 #561D27 #43561D #1D564C
split-complementary
#301D56 #564C1D #27561D
monochromatic
#0D0817 #160E28 #301D56 #4A2C84 #633CB2

Accessibility & contrast

On white

14.63
#301D56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#301D56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D56
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D56#FFFFFF#000000##FFFFFF
##301D561.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#012855
Tritanopia (blue-blind)
#262A36
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #301d56;
/* rgb */ color: rgb(48, 29, 86);
/* oklch */ color: oklch(29.0% 0.099 294.8);
Tailwind
colors: {
  custom: {
    50: '#6c5a86',
    500: '#301d56',
    950: '#000000',
  },
}
SCSS
$custom: #301d56;
$custom-light: #6c5a86;
$custom-dark: #000000;
JSON
{
  "hex": "#301d56",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 86
  },
  "hsl": {
    "h": 260,
    "s": 49.565,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28957,
    "c": 0.09861,
    "h": 294.8
  },
  "luminance": 0.02179
}

Semantic roles & 50–950 ramp

primary
#301D56
secondary
#738B44
accent
#D94FAB
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #301D56

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

Preview Lab → · Contrast checker → · Palette generator →

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