#301458#301458

#301458 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.115 H 297.0°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#301458
RGBrgb(48, 20, 88)
HSLhsl(265, 63%, 21%)
HSVhsv(265, 77%, 35%)
CMYKcmyk(45.5%, 77.3%, 0%, 65.5%)
CIE-LABlab(14.59, 30.12, -35.70)
CIE-LCHlch(14.59, 46.71, 310.15°)
OKLaboklab(27.71% 0.0521 -0.1021)
OKLCHoklch(27.71% 0.115 297)
XYZxyz(3.2301, 1.8332, 9.4143)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301458 #3C5814
analogous
#141A58 #301458 #521458
triadic
#301458 #583014 #145830
tetradic
#301458 #58141A #3C5814 #145852
square
#301458 #58141A #3C5814 #145852
split-complementary
#301458 #585214 #1A5814
monochromatic
#0E0619 #150926 #301458 #4B1F8A #662BBC

Accessibility & contrast

On white

15.37
#301458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#301458 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301458
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301458#FFFFFF#000000##FFFFFF
##3014581.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002457
Tritanopia (blue-blind)
#262534
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301458;
/* rgb */ color: rgb(48, 20, 88);
/* oklch */ color: oklch(27.7% 0.115 297.0);
Tailwind
colors: {
  custom: {
    50: '#6d5488',
    500: '#301458',
    950: '#000000',
  },
}
SCSS
$custom: #301458;
$custom-light: #6d5488;
$custom-dark: #000000;
JSON
{
  "hex": "#301458",
  "rgb": {
    "r": 48,
    "g": 20,
    "b": 88
  },
  "hsl": {
    "h": 264.706,
    "s": 62.963,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27707,
    "c": 0.11462,
    "h": 297
  },
  "luminance": 0.01833
}

Semantic roles & 50–950 ramp

primary
#301458
secondary
#6C9038
accent
#E642A2
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301458

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

Preview Lab → · Contrast checker → · Palette generator →

#301458 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva