#301D74#301D74

#301D74 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.7% C 0.140 H 285.3°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#301D74
RGBrgb(48, 29, 116)
HSLhsl(253, 60%, 28%)
HSVhsv(253, 75%, 45%)
CMYKcmyk(58.6%, 75%, 0%, 54.5%)
CIE-LABlab(19.09, 33.69, -46.77)
CIE-LCHlch(19.09, 57.65, 305.77°)
OKLaboklab(31.73% 0.0367 -0.1346)
OKLCHoklch(31.73% 0.14 285.3)
XYZxyz(4.8097, 2.7678, 16.8004)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D74 #61741D
analogous
#1D3574 #301D74 #5B1D74
triadic
#301D74 #74301D #1D7430
tetradic
#301D74 #741D35 #61741D #1D745B
square
#301D74 #741D35 #61741D #1D745B
split-complementary
#301D74 #745B1D #35741D
monochromatic
#0A0618 #1C1143 #301D74 #4429A5 #5D3DCE

Accessibility & contrast

On white

13.52
#301D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#301D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D74
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D74#FFFFFF#000000##FFFFFF
##301D741.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#0F3446
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #301d74;
/* rgb */ color: rgb(48, 29, 116);
/* oklch */ color: oklch(31.7% 0.140 285.3);
Tailwind
colors: {
  custom: {
    50: '#715b9d',
    500: '#301d74',
    950: '#000000',
  },
}
SCSS
$custom: #301d74;
$custom-light: #715b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#301d74",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 116
  },
  "hsl": {
    "h": 253.103,
    "s": 60,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31727,
    "c": 0.13953,
    "h": 285.3
  },
  "luminance": 0.02768
}

Semantic roles & 50–950 ramp

primary
#301D74
secondary
#92A845
accent
#E345C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301D74

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

Preview Lab → · Contrast checker → · Palette generator →

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