#301257#301257

#301257 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.3% C 0.116 H 298.0°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#301257
RGBrgb(48, 18, 87)
HSLhsl(266, 66%, 21%)
HSVhsv(266, 79%, 34%)
CMYKcmyk(44.8%, 79.3%, 0%, 65.9%)
CIE-LABlab(14.11, 30.90, -35.80)
CIE-LCHlch(14.11, 47.29, 310.80°)
OKLaboklab(27.34% 0.0545 -0.1024)
OKLCHoklch(27.34% 0.116 298)
XYZxyz(3.1551, 1.7491, 9.1863)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301257 #395712
analogous
#121657 #301257 #521257
triadic
#301257 #573012 #125730
tetradic
#301257 #571216 #395712 #125752
square
#301257 #571216 #395712 #125752
split-complementary
#301257 #575212 #165712
monochromatic
#0E0519 #140824 #301257 #4C1C8A #6827BC

Accessibility & contrast

On white

15.56
#301257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#301257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301257
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301257#FFFFFF#000000##FFFFFF
##3012571.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002459
Deuteranopia (green-blind)
#002356
Tritanopia (blue-blind)
#262433
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #301257;
/* rgb */ color: rgb(48, 18, 87);
/* oklch */ color: oklch(27.3% 0.116 298.0);
Tailwind
colors: {
  custom: {
    50: '#6d5387',
    500: '#301257',
    950: '#000000',
  },
}
SCSS
$custom: #301257;
$custom-light: #6d5387;
$custom-dark: #000000;
JSON
{
  "hex": "#301257",
  "rgb": {
    "r": 48,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 266.087,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27342,
    "c": 0.11597,
    "h": 298
  },
  "luminance": 0.01749
}

Semantic roles & 50–950 ramp

primary
#301257
secondary
#689035
accent
#E93F9F
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #301257

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

Preview Lab → · Contrast checker → · Palette generator →

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