#301B67#301B67

#301B67 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.125 H 289.4°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#301B67
RGBrgb(48, 27, 103)
HSLhsl(257, 58%, 25%)
HSVhsv(257, 74%, 40%)
CMYKcmyk(53.4%, 73.8%, 0%, 59.6%)
CIE-LABlab(17.42, 30.71, -41.06)
CIE-LCHlch(17.42, 51.27, 306.79°)
OKLaboklab(30.16% 0.0415 -0.1178)
OKLCHoklch(30.16% 0.125 289.4)
XYZxyz(4.0583, 2.3913, 13.0771)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B67 #52671B
analogous
#1B2C67 #301B67 #561B67
triadic
#301B67 #67301B #1B6730
tetradic
#301B67 #671B2C #52671B #1B6756
square
#301B67 #671B2C #52671B #1B6756
split-complementary
#301B67 #67561B #2C671B
monochromatic
#0B0618 #190E37 #301B67 #472897 #5D34C8

Accessibility & contrast

On white

14.20
#301B67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301B67
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B67#FFFFFF#000000##FFFFFF
##301B671.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301b67;
/* rgb */ color: rgb(48, 27, 103);
/* oklch */ color: oklch(30.2% 0.125 289.4);
Tailwind
colors: {
  custom: {
    50: '#6f5993',
    500: '#301b67',
    950: '#000000',
  },
}
SCSS
$custom: #301b67;
$custom-light: #6f5993;
$custom-dark: #000000;
JSON
{
  "hex": "#301b67",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 103
  },
  "hsl": {
    "h": 256.579,
    "s": 58.462,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30156,
    "c": 0.12492,
    "h": 289.4
  },
  "luminance": 0.02392
}

Semantic roles & 50–950 ramp

primary
#301B67
secondary
#839C42
accent
#E246B7
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #301B67

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

Preview Lab → · Contrast checker → · Palette generator →

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