#301C5D#301C5D

#301C5D is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.4% C 0.110 H 292.5°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#301C5D
RGBrgb(48, 28, 93)
HSLhsl(258, 54%, 24%)
HSVhsv(258, 70%, 36%)
CMYKcmyk(48.4%, 69.9%, 0%, 63.5%)
CIE-LABlab(16.74, 26.93, -35.54)
CIE-LCHlch(16.74, 44.59, 307.14°)
OKLaboklab(29.39% 0.042 -0.1016)
OKLCHoklch(29.39% 0.11 292.5)
XYZxyz(3.6094, 2.2491, 10.5977)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C5D #495D1C
analogous
#1C285D #301C5D #501C5D
triadic
#301C5D #5D301C #1C5D30
tetradic
#301C5D #5D1C28 #495D1C #1C5D50
square
#301C5D #5D1C28 #495D1C #1C5D50
split-complementary
#301C5D #5D501C #285D1C
monochromatic
#0C0718 #180E2E #301C5D #482A8C #6138BB

Accessibility & contrast

On white

14.48
#301C5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301C5D
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C5D#FFFFFF#000000##FFFFFF
##301C5D1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5F
Deuteranopia (green-blind)
#00285C
Tritanopia (blue-blind)
#232B39
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #301c5d;
/* rgb */ color: rgb(48, 28, 93);
/* oklch */ color: oklch(29.4% 0.110 292.5);
Tailwind
colors: {
  custom: {
    50: '#6d598b',
    500: '#301c5d',
    950: '#000000',
  },
}
SCSS
$custom: #301c5d;
$custom-light: #6d598b;
$custom-dark: #000000;
JSON
{
  "hex": "#301c5d",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 93
  },
  "hsl": {
    "h": 258.462,
    "s": 53.719,
    "l": 23.725
  },
  "oklch": {
    "l": 0.2939,
    "c": 0.10998,
    "h": 292.5
  },
  "luminance": 0.02249
}

Semantic roles & 50–950 ramp

primary
#301C5D
secondary
#7A9242
accent
#DD4BB0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #301C5D

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

Preview Lab → · Contrast checker → · Palette generator →

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