#301A70#301A70

#301A70 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.138 H 287.0°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#301A70
RGBrgb(48, 26, 112)
HSLhsl(255, 62%, 27%)
HSVhsv(255, 77%, 44%)
CMYKcmyk(57.1%, 76.8%, 0%, 56.1%)
CIE-LABlab(18.08, 34.13, -45.84)
CIE-LCHlch(18.08, 57.15, 306.67°)
OKLaboklab(30.9% 0.0403 -0.1318)
OKLCHoklch(30.9% 0.138 287)
XYZxyz(4.5121, 2.5368, 15.5780)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A70 #5A701A
analogous
#1A2F70 #301A70 #5B1A70
triadic
#301A70 #70301A #1A7030
tetradic
#301A70 #701A2F #5A701A #1A705B
square
#301A70 #701A2F #5A701A #1A705B
split-complementary
#301A70 #705B1A #2F701A
monochromatic
#0B0619 #1B0E3E #301A70 #4526A2 #5C34D0

Accessibility & contrast

On white

13.93
#301A70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#301A70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A70
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A70#FFFFFF#000000##FFFFFF
##301A701.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E72
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#153143
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #301a70;
/* rgb */ color: rgb(48, 26, 112);
/* oklch */ color: oklch(30.9% 0.138 287.0);
Tailwind
colors: {
  custom: {
    50: '#70599a',
    500: '#301a70',
    950: '#000000',
  },
}
SCSS
$custom: #301a70;
$custom-light: #70599a;
$custom-dark: #000000;
JSON
{
  "hex": "#301a70",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 112
  },
  "hsl": {
    "h": 255.349,
    "s": 62.319,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30895,
    "c": 0.13788,
    "h": 287
  },
  "luminance": 0.02537
}

Semantic roles & 50–950 ramp

primary
#301A70
secondary
#8BA541
accent
#E542BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301A70

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

Preview Lab → · Contrast checker → · Palette generator →

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