#301857#301857

#301857 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.108 H 296.3°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#301857
RGBrgb(48, 24, 87)
HSLhsl(263, 57%, 22%)
HSVhsv(263, 72%, 34%)
CMYKcmyk(44.8%, 72.4%, 0%, 65.9%)
CIE-LABlab(15.33, 27.51, -33.82)
CIE-LCHlch(15.33, 43.60, 309.13°)
OKLaboklab(28.21% 0.0477 -0.0966)
OKLCHoklch(28.21% 0.108 296.3)
XYZxyz(3.2654, 1.9697, 9.2231)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301857 #3F5718
analogous
#182057 #301857 #501857
triadic
#301857 #573018 #185730
tetradic
#301857 #571820 #3F5718 #185750
square
#301857 #571820 #3F5718 #185750
split-complementary
#301857 #575018 #205718
monochromatic
#0D0718 #160B27 #301857 #4A2587 #6532B7

Accessibility & contrast

On white

15.06
#301857 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#301857 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301857
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301857#FFFFFF#000000##FFFFFF
##3018571.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002759
Deuteranopia (green-blind)
#002656
Tritanopia (blue-blind)
#262735
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #301857;
/* rgb */ color: rgb(48, 24, 87);
/* oklch */ color: oklch(28.2% 0.108 296.3);
Tailwind
colors: {
  custom: {
    50: '#6c5787',
    500: '#301857',
    950: '#000000',
  },
}
SCSS
$custom: #301857;
$custom-light: #6c5787;
$custom-dark: #000000;
JSON
{
  "hex": "#301857",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 87
  },
  "hsl": {
    "h": 262.857,
    "s": 56.757,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28208,
    "c": 0.10771,
    "h": 296.3
  },
  "luminance": 0.0197
}

Semantic roles & 50–950 ramp

primary
#301857
secondary
#6F8E3D
accent
#E048A6
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301857

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

Preview Lab → · Contrast checker → · Palette generator →

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