#301677#301677

#301677 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.151 H 285.9°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#301677
RGBrgb(48, 22, 119)
HSLhsl(256, 69%, 28%)
HSVhsv(256, 82%, 47%)
CMYKcmyk(59.7%, 81.5%, 0%, 53.3%)
CIE-LABlab(18.07, 38.40, -50.38)
CIE-LCHlch(18.07, 63.34, 307.32°)
OKLaboklab(31.11% 0.0414 -0.1451)
OKLCHoklch(31.11% 0.151 285.9)
XYZxyz(4.8346, 2.5338, 17.6835)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301677 #5D7716
analogous
#162D77 #301677 #601677
triadic
#301677 #773016 #167730
tetradic
#301677 #77162D #5D7716 #167760
square
#301677 #77162D #5D7716 #167760
split-complementary
#301677 #776016 #2D7716
monochromatic
#0A051A #1B0C43 #301677 #4520AB #5C2FD9

Accessibility & contrast

On white

13.94
#301677 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#301677 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301677
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301677#FFFFFF#000000##FFFFFF
##3016771.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002975
Tritanopia (blue-blind)
#0C3246
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #301677;
/* rgb */ color: rgb(48, 22, 119);
/* oklch */ color: oklch(31.1% 0.151 285.9);
Tailwind
colors: {
  custom: {
    50: '#72579f',
    500: '#301677',
    950: '#000000',
  },
}
SCSS
$custom: #301677;
$custom-light: #72579f;
$custom-dark: #000000;
JSON
{
  "hex": "#301677",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 119
  },
  "hsl": {
    "h": 256.082,
    "s": 68.794,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31105,
    "c": 0.15089,
    "h": 285.9
  },
  "luminance": 0.02534
}

Semantic roles & 50–950 ramp

primary
#301677
secondary
#8EAC3C
accent
#EC3CBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #301677

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

Preview Lab → · Contrast checker → · Palette generator →

#301677 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva