#301A4F#301A4F

#301A4F is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.094 H 299.4°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#301A4F
RGBrgb(48, 26, 79)
HSLhsl(265, 50%, 21%)
HSVhsv(265, 67%, 31%)
CMYKcmyk(39.2%, 67.1%, 0%, 69%)
CIE-LABlab(15.12, 23.84, -28.72)
CIE-LCHlch(15.12, 37.33, 309.70°)
OKLaboklab(27.85% 0.0459 -0.0816)
OKLCHoklch(27.85% 0.094 299.4)
XYZxyz(2.9993, 1.9317, 7.6105)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A4F #394F1A
analogous
#1A1E4F #301A4F #4A1A4F
triadic
#301A4F #4F301A #1A4F30
tetradic
#301A4F #4F1A1E #394F1A #1A4F4A
square
#301A4F #4F1A1E #394F1A #1A4F4A
split-complementary
#301A4F #4F4A1A #1E4F1A
monochromatic
#0E0817 #140B21 #301A4F #4C297D #6838AB

Accessibility & contrast

On white

15.15
#301A4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#301A4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A4F
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A4F#FFFFFF#000000##FFFFFF
##301A4F1.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002651
Deuteranopia (green-blind)
#06254E
Tritanopia (blue-blind)
#292531
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #301a4f;
/* rgb */ color: rgb(48, 26, 79);
/* oklch */ color: oklch(27.9% 0.094 299.4);
Tailwind
colors: {
  custom: {
    50: '#6b5881',
    500: '#301a4f',
    950: '#000000',
  },
}
SCSS
$custom: #301a4f;
$custom-light: #6b5881;
$custom-dark: #000000;
JSON
{
  "hex": "#301a4f",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 79
  },
  "hsl": {
    "h": 264.906,
    "s": 50.476,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27853,
    "c": 0.09362,
    "h": 299.4
  },
  "luminance": 0.01932
}

Semantic roles & 50–950 ramp

primary
#301A4F
secondary
#688540
accent
#DA4EA0
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #301A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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