#301D6F#301D6F

#301D6F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.2% C 0.133 H 286.5°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#301D6F
RGBrgb(48, 29, 111)
HSLhsl(254, 59%, 27%)
HSVhsv(254, 74%, 44%)
CMYKcmyk(56.8%, 73.9%, 0%, 56.5%)
CIE-LABlab(18.60, 32.08, -44.34)
CIE-LCHlch(18.60, 54.73, 305.89°)
OKLaboklab(31.23% 0.0378 -0.1275)
OKLCHoklch(31.23% 0.133 286.5)
XYZxyz(4.5267, 2.6546, 15.3097)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D6F #5C6F1D
analogous
#1D336F #301D6F #591D6F
triadic
#301D6F #6F301D #1D6F30
tetradic
#301D6F #6F1D33 #5C6F1D #1D6F59
square
#301D6F #6F1D33 #5C6F1D #1D6F59
split-complementary
#301D6F #6F591D #336F1D
monochromatic
#0A0618 #1B103E #301D6F #452AA0 #5C3BCC

Accessibility & contrast

On white

13.72
#301D6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#301D6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D6F
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D6F#FFFFFF#000000##FFFFFF
##301D6F1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#153343
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301d6f;
/* rgb */ color: rgb(48, 29, 111);
/* oklch */ color: oklch(31.2% 0.133 286.5);
Tailwind
colors: {
  custom: {
    50: '#705b99',
    500: '#301d6f',
    950: '#000000',
  },
}
SCSS
$custom: #301d6f;
$custom-light: #705b99;
$custom-dark: #000000;
JSON
{
  "hex": "#301d6f",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 111
  },
  "hsl": {
    "h": 253.902,
    "s": 58.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31233,
    "c": 0.13297,
    "h": 286.5
  },
  "luminance": 0.02655
}

Semantic roles & 50–950 ramp

primary
#301D6F
secondary
#8DA344
accent
#E246BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301D6F

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

Preview Lab → · Contrast checker → · Palette generator →

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