#301A58#301A58

#301A58 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.106 H 295.2°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#301A58
RGBrgb(48, 26, 88)
HSLhsl(261, 54%, 22%)
HSVhsv(261, 70%, 35%)
CMYKcmyk(45.5%, 70.5%, 0%, 65.5%)
CIE-LABlab(15.86, 26.60, -33.63)
CIE-LCHlch(15.86, 42.88, 308.34°)
OKLaboklab(28.62% 0.0451 -0.096)
OKLCHoklch(28.62% 0.106 295.2)
XYZxyz(3.3493, 2.0717, 9.4540)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A58 #42581A
analogous
#1A2358 #301A58 #4F1A58
triadic
#301A58 #58301A #1A5830
tetradic
#301A58 #581A23 #42581A #1A584F
square
#301A58 #581A23 #42581A #1A584F
split-complementary
#301A58 #584F1A #23581A
monochromatic
#0D0718 #160C29 #301A58 #4A2887 #6436B6

Accessibility & contrast

On white

14.85
#301A58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#301A58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301A58
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A58#FFFFFF#000000##FFFFFF
##301A581.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285A
Deuteranopia (green-blind)
#002757
Tritanopia (blue-blind)
#252936
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #301a58;
/* rgb */ color: rgb(48, 26, 88);
/* oklch */ color: oklch(28.6% 0.106 295.2);
Tailwind
colors: {
  custom: {
    50: '#6c5888',
    500: '#301a58',
    950: '#000000',
  },
}
SCSS
$custom: #301a58;
$custom-light: #6c5888;
$custom-dark: #000000;
JSON
{
  "hex": "#301a58",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 88
  },
  "hsl": {
    "h": 261.29,
    "s": 54.386,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28618,
    "c": 0.10608,
    "h": 295.2
  },
  "luminance": 0.02072
}

Semantic roles & 50–950 ramp

primary
#301A58
secondary
#728E40
accent
#DE4AA9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301A58

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

Preview Lab → · Contrast checker → · Palette generator →

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