#301B66#301B66

#301B66 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.1% C 0.124 H 289.7°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#301B66
RGBrgb(48, 27, 102)
HSLhsl(257, 58%, 25%)
HSVhsv(257, 74%, 40%)
CMYKcmyk(52.9%, 73.5%, 0%, 60%)
CIE-LABlab(17.33, 30.39, -40.55)
CIE-LCHlch(17.33, 50.67, 306.85°)
OKLaboklab(30.06% 0.0417 -0.1163)
OKLCHoklch(30.06% 0.124 289.7)
XYZxyz(4.0084, 2.3714, 12.8143)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B66 #51661B
analogous
#1B2B66 #301B66 #551B66
triadic
#301B66 #66301B #1B6630
tetradic
#301B66 #661B2B #51661B #1B6655
square
#301B66 #661B2B #51661B #1B6655
split-complementary
#301B66 #66551B #2B661B
monochromatic
#0B0618 #190E36 #301B66 #472896 #5E35C7

Accessibility & contrast

On white

14.24
#301B66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#301B66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B66
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B66#FFFFFF#000000##FFFFFF
##301B661.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C68
Deuteranopia (green-blind)
#002965
Tritanopia (blue-blind)
#1D2E3E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #301b66;
/* rgb */ color: rgb(48, 27, 102);
/* oklch */ color: oklch(30.1% 0.124 289.7);
Tailwind
colors: {
  custom: {
    50: '#6e5992',
    500: '#301b66',
    950: '#000000',
  },
}
SCSS
$custom: #301b66;
$custom-light: #6e5992;
$custom-dark: #000000;
JSON
{
  "hex": "#301b66",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 102
  },
  "hsl": {
    "h": 256.8,
    "s": 58.14,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3006,
    "c": 0.12358,
    "h": 289.7
  },
  "luminance": 0.02372
}

Semantic roles & 50–950 ramp

primary
#301B66
secondary
#829B41
accent
#E146B6
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #301B66

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

Preview Lab → · Contrast checker → · Palette generator →

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