#301D7B#301D7B

#301D7B is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.149 H 283.6°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#301D7B
RGBrgb(48, 29, 123)
HSLhsl(252, 62%, 30%)
HSVhsv(252, 76%, 48%)
CMYKcmyk(61%, 76.4%, 0%, 51.8%)
CIE-LABlab(19.79, 35.94, -50.11)
CIE-LCHlch(19.79, 61.67, 305.65°)
OKLaboklab(32.44% 0.0351 -0.1444)
OKLCHoklch(32.44% 0.149 283.6)
XYZxyz(5.2323, 2.9368, 19.0262)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301D7B #687B1D
analogous
#1D397B #301D7B #5F1D7B
triadic
#301D7B #7B301D #1D7B30
tetradic
#301D7B #7B1D39 #687B1D #1D7B5F
square
#301D7B #7B1D39 #687B1D #1D7B5F
split-complementary
#301D7B #7B5F1D #397B1D
monochromatic
#0A0619 #1D1149 #301D7B #4329AD #5E40D2

Accessibility & contrast

On white

13.23
#301D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#301D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301D7B
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301D7B#FFFFFF#000000##FFFFFF
##301D7B1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#02374A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301d7b;
/* rgb */ color: rgb(48, 29, 123);
/* oklch */ color: oklch(32.4% 0.149 283.6);
Tailwind
colors: {
  custom: {
    50: '#725ba2',
    500: '#301d7b',
    950: '#000000',
  },
}
SCSS
$custom: #301d7b;
$custom-light: #725ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#301d7b",
  "rgb": {
    "r": 48,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 252.128,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32436,
    "c": 0.14857,
    "h": 283.6
  },
  "luminance": 0.02937
}

Semantic roles & 50–950 ramp

primary
#301D7B
secondary
#99AF45
accent
#E543C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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