#301C6E#301C6E

#301C6E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.133 H 287.1°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#301C6E
RGBrgb(48, 28, 110)
HSLhsl(255, 59%, 27%)
HSVhsv(255, 75%, 43%)
CMYKcmyk(56.4%, 74.5%, 0%, 56.9%)
CIE-LABlab(18.30, 32.35, -44.19)
CIE-LCHlch(18.30, 54.77, 306.21°)
OKLaboklab(30.99% 0.039 -0.127)
OKLCHoklch(30.99% 0.133 287.1)
XYZxyz(4.4478, 2.5844, 15.0133)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C6E #5A6E1C
analogous
#1C316E #301C6E #591C6E
triadic
#301C6E #6E301C #1C6E30
tetradic
#301C6E #6E1C31 #5A6E1C #1C6E59
square
#301C6E #6E1C31 #5A6E1C #1C6E59
split-complementary
#301C6E #6E591C #316E1C
monochromatic
#0B0618 #1B103D #301C6E #45289F #5C38CC

Accessibility & contrast

On white

13.84
#301C6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#301C6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C6E
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C6E#FFFFFF#000000##FFFFFF
##301C6E1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#002A6C
Tritanopia (blue-blind)
#173243
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301c6e;
/* rgb */ color: rgb(48, 28, 110);
/* oklch */ color: oklch(31.0% 0.133 287.1);
Tailwind
colors: {
  custom: {
    50: '#705a98',
    500: '#301c6e',
    950: '#000000',
  },
}
SCSS
$custom: #301c6e;
$custom-light: #705a98;
$custom-dark: #000000;
JSON
{
  "hex": "#301c6e",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 110
  },
  "hsl": {
    "h": 254.634,
    "s": 59.42,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30985,
    "c": 0.13289,
    "h": 287.1
  },
  "luminance": 0.02585
}

Semantic roles & 50–950 ramp

primary
#301C6E
secondary
#8BA343
accent
#E345BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301C6E

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

Preview Lab → · Contrast checker → · Palette generator →

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