#301A62#301A62

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

Color values

HEX#301A62
RGBrgb(48, 26, 98)
HSLhsl(258, 58%, 24%)
HSVhsv(258, 73%, 38%)
CMYKcmyk(51%, 73.5%, 0%, 61.6%)
CIE-LABlab(16.74, 29.72, -38.87)
CIE-LCHlch(16.74, 48.93, 307.41°)
OKLaboklab(29.53% 0.0435 -0.1114)
OKLCHoklch(29.53% 0.12 291.3)
XYZxyz(3.7923, 2.2489, 11.7872)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301A62 #4C621A
analogous
#1A2862 #301A62 #541A62
triadic
#301A62 #62301A #1A6230
tetradic
#301A62 #621A28 #4C621A #1A6254
square
#301A62 #621A28 #4C621A #1A6254
split-complementary
#301A62 #62541A #28621A
monochromatic
#0C0618 #180D32 #301A62 #482792 #5F34C3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##301A62#FFFFFF#000000##FFFFFF
##301A621.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)
#002A64
Deuteranopia (green-blind)
#002861
Tritanopia (blue-blind)
#202C3B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #301a62;
/* rgb */ color: rgb(48, 26, 98);
/* oklch */ color: oklch(29.5% 0.120 291.3);
Tailwind
colors: {
  custom: {
    50: '#6e588f',
    500: '#301a62',
    950: '#000000',
  },
}
SCSS
$custom: #301a62;
$custom-light: #6e588f;
$custom-dark: #000000;
JSON
{
  "hex": "#301a62",
  "rgb": {
    "r": 48,
    "g": 26,
    "b": 98
  },
  "hsl": {
    "h": 258.333,
    "s": 58.065,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29528,
    "c": 0.11959,
    "h": 291.3
  },
  "luminance": 0.02249
}

Semantic roles & 50–950 ramp

primary
#301A62
secondary
#7D9840
accent
#E147B2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #301A62

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

Preview Lab → · Contrast checker → · Palette generator →

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