#301A6F#301A6F

#301A6F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.137 H 287.3°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#301A6F
RGBrgb(48, 26, 111)
HSLhsl(256, 62%, 27%)
HSVhsv(256, 77%, 44%)
CMYKcmyk(56.8%, 76.6%, 0%, 56.5%)
CIE-LABlab(17.98, 33.81, -45.35)
CIE-LCHlch(17.98, 56.57, 306.71°)
OKLaboklab(30.79% 0.0406 -0.1304)
OKLCHoklch(30.79% 0.137 287.3)
XYZxyz(4.4567, 2.5146, 15.2864)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A6F #596F1A
analogous
#1A2F6F #301A6F #5B1A6F
triadic
#301A6F #6F301A #1A6F30
tetradic
#301A6F #6F1A2F #596F1A #1A6F5B
square
#301A6F #6F1A2F #596F1A #1A6F5B
split-complementary
#301A6F #6F5B1A #2F6F1A
monochromatic
#0B0619 #1B0E3D #301A6F #4526A1 #5C34CF

Accessibility & contrast

On white

13.97
#301A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#301A6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A6F
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A6F#FFFFFF#000000##FFFFFF
##301A6F1.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002A6D
Tritanopia (blue-blind)
#163143
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #301a6f;
/* rgb */ color: rgb(48, 26, 111);
/* oklch */ color: oklch(30.8% 0.137 287.3);
Tailwind
colors: {
  custom: {
    50: '#705999',
    500: '#301a6f',
    950: '#000000',
  },
}
SCSS
$custom: #301a6f;
$custom-light: #705999;
$custom-dark: #000000;
JSON
{
  "hex": "#301a6f",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 111
  },
  "hsl": {
    "h": 255.529,
    "s": 62.044,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30794,
    "c": 0.1366,
    "h": 287.3
  },
  "luminance": 0.02515
}

Semantic roles & 50–950 ramp

primary
#301A6F
secondary
#8AA441
accent
#E543BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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