#301E6E#301E6E

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

Color values

HEX#301E6E
RGBrgb(48, 30, 110)
HSLhsl(254, 57%, 27%)
HSVhsv(254, 73%, 43%)
CMYKcmyk(56.4%, 72.7%, 0%, 56.9%)
CIE-LABlab(18.72, 31.16, -43.49)
CIE-LCHlch(18.72, 53.50, 305.62°)
OKLaboklab(31.29% 0.0371 -0.125)
OKLCHoklch(31.29% 0.13 286.5)
XYZxyz(4.4968, 2.6825, 15.0296)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E6E #5C6E1E
analogous
#1E346E #301E6E #581E6E
triadic
#301E6E #6E301E #1E6E30
tetradic
#301E6E #6E1E34 #5C6E1E #1E6E58
square
#301E6E #6E1E34 #5C6E1E #1E6E58
split-complementary
#301E6E #6E581E #346E1E
monochromatic
#0A0718 #1B113E #301E6E #452B9E #5C3CCA

Accessibility & contrast

On white

13.67
#301E6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#301E6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E6E
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E6E#FFFFFF#000000##FFFFFF
##301E6E1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#002B6C
Tritanopia (blue-blind)
#163343
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #301e6e;
/* rgb */ color: rgb(48, 30, 110);
/* oklch */ color: oklch(31.3% 0.130 286.5);
Tailwind
colors: {
  custom: {
    50: '#705b98',
    500: '#301e6e',
    950: '#000000',
  },
}
SCSS
$custom: #301e6e;
$custom-light: #705b98;
$custom-dark: #000000;
JSON
{
  "hex": "#301e6e",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 110
  },
  "hsl": {
    "h": 253.5,
    "s": 57.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3129,
    "c": 0.13037,
    "h": 286.5
  },
  "luminance": 0.02683
}

Semantic roles & 50–950 ramp

primary
#301E6E
secondary
#8DA246
accent
#E047BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301E6E

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

Preview Lab → · Contrast checker → · Palette generator →

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