#301E6D#301E6D

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

Color values

HEX#301E6D
RGBrgb(48, 30, 109)
HSLhsl(254, 57%, 27%)
HSVhsv(254, 72%, 43%)
CMYKcmyk(56%, 72.5%, 0%, 57.3%)
CIE-LABlab(18.63, 30.84, -43.00)
CIE-LCHlch(18.63, 52.91, 305.65°)
OKLaboklab(31.2% 0.0373 -0.1235)
OKLCHoklch(31.2% 0.129 286.8)
XYZxyz(4.4427, 2.6608, 14.7445)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E6D #5B6D1E
analogous
#1E336D #301E6D #581E6D
triadic
#301E6D #6D301E #1E6D30
tetradic
#301E6D #6D1E33 #5B6D1E #1E6D58
square
#301E6D #6D1E33 #5B6D1E #1E6D58
split-complementary
#301E6D #6D581E #336D1E
monochromatic
#0B0718 #1B113D #301E6D #452B9D #5C3CC9

Accessibility & contrast

On white

13.71
#301E6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301E6D
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E6D#FFFFFF#000000##FFFFFF
##301E6D1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6F
Deuteranopia (green-blind)
#002B6B
Tritanopia (blue-blind)
#173243
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301e6d;
/* rgb */ color: rgb(48, 30, 109);
/* oklch */ color: oklch(31.2% 0.129 286.8);
Tailwind
colors: {
  custom: {
    50: '#6f5b98',
    500: '#301e6d',
    950: '#000000',
  },
}
SCSS
$custom: #301e6d;
$custom-light: #6f5b98;
$custom-dark: #000000;
JSON
{
  "hex": "#301e6d",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 109
  },
  "hsl": {
    "h": 253.671,
    "s": 56.835,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31195,
    "c": 0.12904,
    "h": 286.8
  },
  "luminance": 0.02661
}

Semantic roles & 50–950 ramp

primary
#301E6D
secondary
#8CA145
accent
#E048BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301E6D

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

Preview Lab → · Contrast checker → · Palette generator →

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