#301D6E#301D6E

#301D6E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.132 H 286.8°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#301D6E
RGBrgb(48, 29, 110)
HSLhsl(254, 58%, 27%)
HSVhsv(254, 74%, 43%)
CMYKcmyk(56.4%, 73.6%, 0%, 56.9%)
CIE-LABlab(18.51, 31.76, -43.85)
CIE-LCHlch(18.51, 54.14, 305.92°)
OKLaboklab(31.14% 0.038 -0.126)
OKLCHoklch(31.14% 0.132 286.8)
XYZxyz(4.4719, 2.6327, 15.0213)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D6E #5B6E1D
analogous
#1D336E #301D6E #591D6E
triadic
#301D6E #6E301D #1D6E30
tetradic
#301D6E #6E1D33 #5B6E1D #1D6E59
square
#301D6E #6E1D33 #5B6E1D #1D6E59
split-complementary
#301D6E #6E591D #336E1D
monochromatic
#0B0618 #1B103E #301D6E #452A9E #5C3ACB

Accessibility & contrast

On white

13.76
#301D6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301D6E
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D6E#FFFFFF#000000##FFFFFF
##301D6E1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#002B6C
Tritanopia (blue-blind)
#163243
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301d6e;
/* rgb */ color: rgb(48, 29, 110);
/* oklch */ color: oklch(31.1% 0.132 286.8);
Tailwind
colors: {
  custom: {
    50: '#705b98',
    500: '#301d6e',
    950: '#000000',
  },
}
SCSS
$custom: #301d6e;
$custom-light: #705b98;
$custom-dark: #000000;
JSON
{
  "hex": "#301d6e",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 110
  },
  "hsl": {
    "h": 254.074,
    "s": 58.273,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31136,
    "c": 0.13165,
    "h": 286.8
  },
  "luminance": 0.02633
}

Semantic roles & 50–950 ramp

primary
#301D6E
secondary
#8CA244
accent
#E146BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301D6E

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

Preview Lab → · Contrast checker → · Palette generator →

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