#301E4E#301E4E

#301E4E is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.5% C 0.085 H 298.1°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#301E4E
RGBrgb(48, 30, 78)
HSLhsl(263, 44%, 21%)
HSVhsv(263, 62%, 31%)
CMYKcmyk(38.5%, 61.5%, 0%, 69.4%)
CIE-LABlab(16.04, 20.93, -26.57)
CIE-LCHlch(16.04, 33.82, 308.23°)
OKLaboklab(28.5% 0.0402 -0.0753)
OKLCHoklch(28.5% 0.085 298.1)
XYZxyz(3.0580, 2.1069, 7.4518)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301E4E #3C4E1E
analogous
#1E244E #301E4E #481E4E
triadic
#301E4E #4E301E #1E4E30
tetradic
#301E4E #4E1E24 #3C4E1E #1E4E48
square
#301E4E #4E1E24 #3C4E1E #1E4E48
split-complementary
#301E4E #4E481E #244E1E
monochromatic
#0E0916 #150D22 #301E4E #4B2F7A #6640A6

Accessibility & contrast

On white

14.77
#301E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#301E4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301E4E
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301E4E#FFFFFF#000000##FFFFFF
##301E4E1.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082850
Deuteranopia (green-blind)
#0F274D
Tritanopia (blue-blind)
#292832
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #301e4e;
/* rgb */ color: rgb(48, 30, 78);
/* oklch */ color: oklch(28.5% 0.085 298.1);
Tailwind
colors: {
  custom: {
    50: '#6b5a80',
    500: '#301e4e',
    950: '#000000',
  },
}
SCSS
$custom: #301e4e;
$custom-light: #6b5a80;
$custom-dark: #000000;
JSON
{
  "hex": "#301e4e",
  "rgb": {
    "r": 48,
    "g": 30,
    "b": 78
  },
  "hsl": {
    "h": 262.5,
    "s": 44.444,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28498,
    "c": 0.08531,
    "h": 298.1
  },
  "luminance": 0.02107
}

Semantic roles & 50–950 ramp

primary
#301E4E
secondary
#6C8345
accent
#D454A4
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #301E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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