#301A6E#301A6E

#301A6E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.135 H 287.6°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#301A6E
RGBrgb(48, 26, 110)
HSLhsl(256, 62%, 27%)
HSVhsv(256, 76%, 43%)
CMYKcmyk(56.4%, 76.4%, 0%, 56.9%)
CIE-LABlab(17.89, 33.50, -44.87)
CIE-LCHlch(17.89, 55.99, 306.75°)
OKLaboklab(30.69% 0.0408 -0.129)
OKLCHoklch(30.69% 0.135 287.6)
XYZxyz(4.4020, 2.4927, 14.9980)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A6E #586E1A
analogous
#1A2E6E #301A6E #5A1A6E
triadic
#301A6E #6E301A #1A6E30
tetradic
#301A6E #6E1A2E #586E1A #1A6E5A
square
#301A6E #6E1A2E #586E1A #1A6E5A
split-complementary
#301A6E #6E5A1A #2E6E1A
monochromatic
#0B0619 #1A0E3D #301A6E #4626A0 #5C34CF

Accessibility & contrast

On white

14.01
#301A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301A6E
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A6E#FFFFFF#000000##FFFFFF
##301A6E1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#00296C
Tritanopia (blue-blind)
#173142
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #301a6e;
/* rgb */ color: rgb(48, 26, 110);
/* oklch */ color: oklch(30.7% 0.135 287.6);
Tailwind
colors: {
  custom: {
    50: '#705998',
    500: '#301a6e',
    950: '#000000',
  },
}
SCSS
$custom: #301a6e;
$custom-light: #705998;
$custom-dark: #000000;
JSON
{
  "hex": "#301a6e",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 110
  },
  "hsl": {
    "h": 255.714,
    "s": 61.765,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30694,
    "c": 0.13531,
    "h": 287.6
  },
  "luminance": 0.02493
}

Semantic roles & 50–950 ramp

primary
#301A6E
secondary
#89A341
accent
#E543BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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