#301D44#301D44

#301D44 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.6% C 0.072 H 304.6°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#301D44
RGBrgb(48, 29, 68)
HSLhsl(269, 40%, 19%)
HSVhsv(269, 57%, 27%)
CMYKcmyk(29.4%, 57.4%, 0%, 73.3%)
CIE-LABlab(15.09, 18.60, -21.21)
CIE-LCHlch(15.09, 28.21, 311.25°)
OKLaboklab(27.57% 0.0411 -0.0596)
OKLCHoklch(27.57% 0.072 304.6)
XYZxyz(2.7015, 1.9245, 5.6969)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D44 #31441D
analogous
#1D1E44 #301D44 #441D44
triadic
#301D44 #44301D #1D4430
tetradic
#301D44 #441D1E #31441D #1D4444
square
#301D44 #441D1E #31441D #1D4444
split-complementary
#301D44 #44441D #1E441D
monochromatic
#0F0915 #120B19 #301D44 #4E2F6F #6D429A

Accessibility & contrast

On white

15.16
#301D44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#301D44 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D44
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D44#FFFFFF#000000##FFFFFF
##301D441.0015.161.3815.16
#FFFFFF15.161.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112545
Deuteranopia (green-blind)
#162643
Tritanopia (blue-blind)
#2D242D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #301d44;
/* rgb */ color: rgb(48, 29, 68);
/* oklch */ color: oklch(27.6% 0.072 304.6);
Tailwind
colors: {
  custom: {
    50: '#6a5978',
    500: '#301d44',
    950: '#000000',
  },
}
SCSS
$custom: #301d44;
$custom-light: #6a5978;
$custom-dark: #000000;
JSON
{
  "hex": "#301d44",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 68
  },
  "hsl": {
    "h": 269.231,
    "s": 40.206,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2757,
    "c": 0.07235,
    "h": 304.6
  },
  "luminance": 0.01924
}

Semantic roles & 50–950 ramp

primary
#301D44
secondary
#5F7944
accent
#D05895
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #301D44

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

Preview Lab → · Contrast checker → · Palette generator →

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