#301A5B#301A5B

#301A5B is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.110 H 293.9°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#301A5B
RGBrgb(48, 26, 91)
HSLhsl(260, 56%, 23%)
HSVhsv(260, 71%, 36%)
CMYKcmyk(47.3%, 71.4%, 0%, 64.3%)
CIE-LABlab(16.12, 27.53, -35.23)
CIE-LCHlch(16.12, 44.71, 308.01°)
OKLaboklab(28.89% 0.0447 -0.1007)
OKLCHoklch(28.89% 0.11 293.9)
XYZxyz(3.4761, 2.1224, 10.1220)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A5B #455B1A
analogous
#1A245B #301A5B #501A5B
triadic
#301A5B #5B301A #1A5B30
tetradic
#301A5B #5B1A24 #455B1A #1A5B50
square
#301A5B #5B1A24 #455B1A #1A5B50
split-complementary
#301A5B #5B501A #245B1A
monochromatic
#0D0718 #170C2B #301A5B #49288B #6235BA

Accessibility & contrast

On white

14.74
#301A5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#301A5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A5B
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A5B#FFFFFF#000000##FFFFFF
##301A5B1.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#00275A
Tritanopia (blue-blind)
#242A38
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #301a5b;
/* rgb */ color: rgb(48, 26, 91);
/* oklch */ color: oklch(28.9% 0.110 293.9);
Tailwind
colors: {
  custom: {
    50: '#6d588a',
    500: '#301a5b',
    950: '#000000',
  },
}
SCSS
$custom: #301a5b;
$custom-light: #6d588a;
$custom-dark: #000000;
JSON
{
  "hex": "#301a5b",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 91
  },
  "hsl": {
    "h": 260.308,
    "s": 55.556,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28885,
    "c": 0.11018,
    "h": 293.9
  },
  "luminance": 0.02122
}

Semantic roles & 50–950 ramp

primary
#301A5B
secondary
#769140
accent
#DF49AC
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #301A5B

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

Preview Lab → · Contrast checker → · Palette generator →

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