#301B4E#301B4E

#301B4E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.9% C 0.091 H 299.5°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#301B4E
RGBrgb(48, 27, 78)
HSLhsl(265, 49%, 21%)
HSVhsv(265, 65%, 31%)
CMYKcmyk(38.5%, 65.4%, 0%, 69.4%)
CIE-LABlab(15.29, 22.90, -27.77)
CIE-LCHlch(15.29, 36.00, 309.51°)
OKLaboklab(27.95% 0.0446 -0.0788)
OKLCHoklch(27.95% 0.091 299.5)
XYZxyz(2.9857, 1.9623, 7.4277)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B4E #394E1B
analogous
#1B1F4E #301B4E #491B4E
triadic
#301B4E #4E301B #1B4E30
tetradic
#301B4E #4E1B1F #394E1B #1B4E49
square
#301B4E #4E1B1F #394E1B #1B4E49
split-complementary
#301B4E #4E491B #1F4E1B
monochromatic
#0E0817 #140B21 #301B4E #4C2B7B #683AA9

Accessibility & contrast

On white

15.08
#301B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#301B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B4E
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B4E#FFFFFF#000000##FFFFFF
##301B4E1.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012650
Deuteranopia (green-blind)
#0A264D
Tritanopia (blue-blind)
#292631
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #301b4e;
/* rgb */ color: rgb(48, 27, 78);
/* oklch */ color: oklch(27.9% 0.091 299.5);
Tailwind
colors: {
  custom: {
    50: '#6b5880',
    500: '#301b4e',
    950: '#000000',
  },
}
SCSS
$custom: #301b4e;
$custom-light: #6b5880;
$custom-dark: #000000;
JSON
{
  "hex": "#301b4e",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 264.706,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27947,
    "c": 0.09052,
    "h": 299.5
  },
  "luminance": 0.01962
}

Semantic roles & 50–950 ramp

primary
#301B4E
secondary
#688441
accent
#D850A0
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #301B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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