#301850#301850

#301850 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.6% C 0.098 H 299.6°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#301850
RGBrgb(48, 24, 80)
HSLhsl(266, 54%, 20%)
HSVhsv(266, 70%, 31%)
CMYKcmyk(40%, 70%, 0%, 68.6%)
CIE-LABlab(14.74, 25.40, -30.03)
CIE-LCHlch(14.74, 39.33, 310.23°)
OKLaboklab(27.6% 0.0486 -0.0854)
OKLCHoklch(27.6% 0.098 299.6)
XYZxyz(2.9932, 1.8608, 7.7893)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301850 #385018
analogous
#181C50 #301850 #4C1850
triadic
#301850 #503018 #185030
tetradic
#301850 #50181C #385018 #18504C
square
#301850 #50181C #385018 #18504C
split-complementary
#301850 #504C18 #1C5018
monochromatic
#0E0718 #140A21 #301850 #4C267F #6834AE

Accessibility & contrast

On white

15.30
#301850 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301850
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301850#FFFFFF#000000##FFFFFF
##3018501.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002552
Deuteranopia (green-blind)
#01254F
Tritanopia (blue-blind)
#292431
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301850;
/* rgb */ color: rgb(48, 24, 80);
/* oklch */ color: oklch(27.6% 0.098 299.6);
Tailwind
colors: {
  custom: {
    50: '#6b5681',
    500: '#301850',
    950: '#000000',
  },
}
SCSS
$custom: #301850;
$custom-light: #6b5681;
$custom-dark: #000000;
JSON
{
  "hex": "#301850",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 80
  },
  "hsl": {
    "h": 265.714,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27599,
    "c": 0.09826,
    "h": 299.6
  },
  "luminance": 0.01861
}

Semantic roles & 50–950 ramp

primary
#301850
secondary
#67873D
accent
#DD4B9E
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #301850

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

Preview Lab → · Contrast checker → · Palette generator →

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