#301D4B#301D4B

#301D4B is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.083 H 300.2°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#301D4B
RGBrgb(48, 29, 75)
HSLhsl(265, 44%, 20%)
HSVhsv(265, 61%, 29%)
CMYKcmyk(36%, 61.3%, 0%, 70.6%)
CIE-LABlab(15.57, 20.68, -25.27)
CIE-LCHlch(15.57, 32.66, 309.29°)
OKLaboklab(28.08% 0.0416 -0.0715)
OKLCHoklch(28.08% 0.083 300.2)
XYZxyz(2.9280, 2.0151, 6.8899)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D4B #384B1D
analogous
#1D214B #301D4B #471D4B
triadic
#301D4B #4B301D #1D4B30
tetradic
#301D4B #4B1D21 #384B1D #1D4B47
square
#301D4B #4B1D21 #384B1D #1D4B47
split-complementary
#301D4B #4B471D #214B1D
monochromatic
#0E0916 #140C1F #301D4B #4C2E77 #683FA3

Accessibility & contrast

On white

14.97
#301D4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#301D4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D4B
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D4B#FFFFFF#000000##FFFFFF
##301D4B1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A274D
Deuteranopia (green-blind)
#11274A
Tritanopia (blue-blind)
#2A2630
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #301d4b;
/* rgb */ color: rgb(48, 29, 75);
/* oklch */ color: oklch(28.1% 0.083 300.2);
Tailwind
colors: {
  custom: {
    50: '#6a597d',
    500: '#301d4b',
    950: '#000000',
  },
}
SCSS
$custom: #301d4b;
$custom-light: #6a597d;
$custom-dark: #000000;
JSON
{
  "hex": "#301d4b",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 75
  },
  "hsl": {
    "h": 264.783,
    "s": 44.231,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28081,
    "c": 0.08268,
    "h": 300.2
  },
  "luminance": 0.02015
}

Semantic roles & 50–950 ramp

primary
#301D4B
secondary
#678044
accent
#D4549F
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #301D4B

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

Preview Lab → · Contrast checker → · Palette generator →

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