#301358#301358

#301358 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.116 H 297.3°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#301358
RGBrgb(48, 19, 88)
HSLhsl(265, 64%, 21%)
HSVhsv(265, 78%, 35%)
CMYKcmyk(45.5%, 78.4%, 0%, 65.5%)
CIE-LABlab(14.39, 30.66, -36.02)
CIE-LCHlch(14.39, 47.30, 310.41°)
OKLaboklab(27.57% 0.0532 -0.103)
OKLCHoklch(27.57% 0.116 297.3)
XYZxyz(3.2128, 1.7986, 9.4085)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301358 #3B5813
analogous
#131858 #301358 #521358
triadic
#301358 #583013 #135830
tetradic
#301358 #581318 #3B5813 #135852
square
#301358 #581318 #3B5813 #135852
split-complementary
#301358 #585213 #185813
monochromatic
#0E0519 #150826 #301358 #4B1E8A #6729BD

Accessibility & contrast

On white

15.44
#301358 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#301358 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301358
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301358#FFFFFF#000000##FFFFFF
##3013581.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301358;
/* rgb */ color: rgb(48, 19, 88);
/* oklch */ color: oklch(27.6% 0.116 297.3);
Tailwind
colors: {
  custom: {
    50: '#6d5488',
    500: '#301358',
    950: '#000000',
  },
}
SCSS
$custom: #301358;
$custom-light: #6d5488;
$custom-dark: #000000;
JSON
{
  "hex": "#301358",
  "rgb": {
    "r": 48,
    "g": 19,
    "b": 88
  },
  "hsl": {
    "h": 265.217,
    "s": 64.486,
    "l": 20.98
  },
  "oklch": {
    "l": 0.2757,
    "c": 0.11593,
    "h": 297.3
  },
  "luminance": 0.01799
}

Semantic roles & 50–950 ramp

primary
#301358
secondary
#6B9037
accent
#E740A1
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301358

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

Preview Lab → · Contrast checker → · Palette generator →

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