#301A57#301A57

#301A57 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.5% C 0.105 H 295.6°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#301A57
RGBrgb(48, 26, 87)
HSLhsl(262, 54%, 22%)
HSVhsv(262, 70%, 34%)
CMYKcmyk(44.8%, 70.1%, 0%, 65.9%)
CIE-LABlab(15.77, 26.29, -33.10)
CIE-LCHlch(15.77, 42.27, 308.46°)
OKLaboklab(28.53% 0.0452 -0.0945)
OKLCHoklch(28.53% 0.105 295.6)
XYZxyz(3.3082, 2.0552, 9.2374)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A57 #41571A
analogous
#1A2357 #301A57 #4F1A57
triadic
#301A57 #57301A #1A5730
tetradic
#301A57 #571A23 #41571A #1A574F
square
#301A57 #571A23 #41571A #1A574F
split-complementary
#301A57 #574F1A #23571A
monochromatic
#0D0718 #160C28 #301A57 #4A2886 #6436B5

Accessibility & contrast

On white

14.88
#301A57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301A57
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301A57#FFFFFF#000000##FFFFFF
##301A571.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002859
Deuteranopia (green-blind)
#002656
Tritanopia (blue-blind)
#262836
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #301a57;
/* rgb */ color: rgb(48, 26, 87);
/* oklch */ color: oklch(28.5% 0.105 295.6);
Tailwind
colors: {
  custom: {
    50: '#6c5887',
    500: '#301a57',
    950: '#000000',
  },
}
SCSS
$custom: #301a57;
$custom-light: #6c5887;
$custom-dark: #000000;
JSON
{
  "hex": "#301a57",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 87
  },
  "hsl": {
    "h": 261.639,
    "s": 53.982,
    "l": 22.157
  },
  "oklch": {
    "l": 0.2853,
    "c": 0.10472,
    "h": 295.6
  },
  "luminance": 0.02055
}

Semantic roles & 50–950 ramp

primary
#301A57
secondary
#718D40
accent
#DD4AA8
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301A57

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

Preview Lab → · Contrast checker → · Palette generator →

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