#301457#301457

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

Color values

HEX#301457
RGBrgb(48, 20, 87)
HSLhsl(265, 63%, 21%)
HSVhsv(265, 77%, 34%)
CMYKcmyk(44.8%, 77%, 0%, 65.9%)
CIE-LABlab(14.49, 29.82, -35.18)
CIE-LCHlch(14.49, 46.12, 310.29°)
OKLaboklab(27.61% 0.0524 -0.1005)
OKLCHoklch(27.61% 0.113 297.5)
XYZxyz(3.1889, 1.8168, 9.1976)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301457 #3B5714
analogous
#141957 #301457 #511457
triadic
#301457 #573014 #145730
tetradic
#301457 #571419 #3B5714 #145751
square
#301457 #571419 #3B5714 #145751
split-complementary
#301457 #575114 #195714
monochromatic
#0E0619 #150925 #301457 #4B1F89 #672BBB

Accessibility & contrast

On white

15.40
#301457 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301457
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301457#FFFFFF#000000##FFFFFF
##3014571.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#002456
Tritanopia (blue-blind)
#262534
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301457;
/* rgb */ color: rgb(48, 20, 87);
/* oklch */ color: oklch(27.6% 0.113 297.5);
Tailwind
colors: {
  custom: {
    50: '#6d5487',
    500: '#301457',
    950: '#000000',
  },
}
SCSS
$custom: #301457;
$custom-light: #6d5487;
$custom-dark: #000000;
JSON
{
  "hex": "#301457",
  "rgb": {
    "r": 48,
    "g": 20,
    "b": 87
  },
  "hsl": {
    "h": 265.075,
    "s": 62.617,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27614,
    "c": 0.11335,
    "h": 297.5
  },
  "luminance": 0.01817
}

Semantic roles & 50–950 ramp

primary
#301457
secondary
#6B8F38
accent
#E642A1
background
#F6F4F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301457

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

Preview Lab → · Contrast checker → · Palette generator →

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