#301754#301754

#301754 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.105 H 298.0°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#301754
RGBrgb(48, 23, 84)
HSLhsl(265, 57%, 21%)
HSVhsv(265, 73%, 33%)
CMYKcmyk(42.9%, 72.6%, 0%, 67.1%)
CIE-LABlab(14.85, 27.20, -32.57)
CIE-LCHlch(14.85, 42.43, 309.87°)
OKLaboklab(27.79% 0.0494 -0.0929)
OKLCHoklch(27.79% 0.105 298)
XYZxyz(3.1251, 1.8812, 8.5842)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301754 #3B5417
analogous
#171C54 #301754 #4E1754
triadic
#301754 #543017 #175430
tetradic
#301754 #54171C #3B5417 #17544E
square
#301754 #54171C #3B5417 #17544E
split-complementary
#301754 #544E17 #1C5417
monochromatic
#0E0718 #150A24 #301754 #4B2484 #6731B4

Accessibility & contrast

On white

15.26
#301754 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#301754 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301754
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301754#FFFFFF#000000##FFFFFF
##3017541.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#002553
Tritanopia (blue-blind)
#272533
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #301754;
/* rgb */ color: rgb(48, 23, 84);
/* oklch */ color: oklch(27.8% 0.105 298.0);
Tailwind
colors: {
  custom: {
    50: '#6c5685',
    500: '#301754',
    950: '#000000',
  },
}
SCSS
$custom: #301754;
$custom-light: #6c5685;
$custom-dark: #000000;
JSON
{
  "hex": "#301754",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 84
  },
  "hsl": {
    "h": 264.59,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27785,
    "c": 0.10519,
    "h": 298
  },
  "luminance": 0.01881
}

Semantic roles & 50–950 ramp

primary
#301754
secondary
#6B8B3C
accent
#E048A2
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301754

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

Preview Lab → · Contrast checker → · Palette generator →

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