#301B68#301B68

#301B68 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.126 H 289.1°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#301B68
RGBrgb(48, 27, 104)
HSLhsl(256, 59%, 26%)
HSVhsv(256, 74%, 41%)
CMYKcmyk(53.8%, 74%, 0%, 59.2%)
CIE-LABlab(17.51, 31.03, -41.56)
CIE-LCHlch(17.51, 51.86, 306.74°)
OKLaboklab(30.25% 0.0413 -0.1193)
OKLCHoklch(30.25% 0.126 289.1)
XYZxyz(4.1088, 2.4115, 13.3430)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B68 #53681B
analogous
#1B2C68 #301B68 #561B68
triadic
#301B68 #68301B #1B6830
tetradic
#301B68 #681B2C #53681B #1B6856
square
#301B68 #681B2C #53681B #1B6856
split-complementary
#301B68 #68561B #2C681B
monochromatic
#0B0618 #1A0E37 #301B68 #462899 #5D34C9

Accessibility & contrast

On white

14.17
#301B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#301B68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B68
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B68#FFFFFF#000000##FFFFFF
##301B681.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002966
Tritanopia (blue-blind)
#1C2F3F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #301b68;
/* rgb */ color: rgb(48, 27, 104);
/* oklch */ color: oklch(30.3% 0.126 289.1);
Tailwind
colors: {
  custom: {
    50: '#6f5994',
    500: '#301b68',
    950: '#000000',
  },
}
SCSS
$custom: #301b68;
$custom-light: #6f5994;
$custom-dark: #000000;
JSON
{
  "hex": "#301b68",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 104
  },
  "hsl": {
    "h": 256.364,
    "s": 58.779,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30252,
    "c": 0.12624,
    "h": 289.1
  },
  "luminance": 0.02412
}

Semantic roles & 50–950 ramp

primary
#301B68
secondary
#849D42
accent
#E246B7
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #301B68

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

Preview Lab → · Contrast checker → · Palette generator →

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