#301B60#301B60

#301B60 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.5% C 0.116 H 291.7°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#301B60
RGBrgb(48, 27, 96)
HSLhsl(258, 56%, 24%)
HSVhsv(258, 72%, 38%)
CMYKcmyk(50%, 71.9%, 0%, 62.4%)
CIE-LABlab(16.78, 28.49, -37.48)
CIE-LCHlch(16.78, 47.08, 307.24°)
OKLaboklab(29.5% 0.0428 -0.1073)
OKLCHoklch(29.5% 0.116 291.7)
XYZxyz(3.7216, 2.2566, 11.3036)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B60 #4B601B
analogous
#1B2960 #301B60 #531B60
triadic
#301B60 #60301B #1B6030
tetradic
#301B60 #601B29 #4B601B #1B6053
square
#301B60 #601B29 #4B601B #1B6053
split-complementary
#301B60 #60531B #29601B
monochromatic
#0C0718 #180E30 #301B60 #482890 #6036C0

Accessibility & contrast

On white

14.47
#301B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#301B60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B60
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B60#FFFFFF#000000##FFFFFF
##301B601.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A62
Deuteranopia (green-blind)
#00285F
Tritanopia (blue-blind)
#212C3B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #301b60;
/* rgb */ color: rgb(48, 27, 96);
/* oklch */ color: oklch(29.5% 0.116 291.7);
Tailwind
colors: {
  custom: {
    50: '#6d598e',
    500: '#301b60',
    950: '#000000',
  },
}
SCSS
$custom: #301b60;
$custom-light: #6d598e;
$custom-dark: #000000;
JSON
{
  "hex": "#301b60",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 96
  },
  "hsl": {
    "h": 258.261,
    "s": 56.098,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29499,
    "c": 0.11553,
    "h": 291.7
  },
  "luminance": 0.02257
}

Semantic roles & 50–950 ramp

primary
#301B60
secondary
#7C9641
accent
#DF48B1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #301B60

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

Preview Lab → · Contrast checker → · Palette generator →

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