#301654#301654

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

Color values

HEX#301654
RGBrgb(48, 22, 84)
HSLhsl(265, 58%, 21%)
HSVhsv(265, 74%, 33%)
CMYKcmyk(42.9%, 73.8%, 0%, 67.1%)
CIE-LABlab(14.64, 27.80, -32.92)
CIE-LCHlch(14.64, 43.08, 310.18°)
OKLaboklab(27.63% 0.0506 -0.0939)
OKLCHoklch(27.63% 0.107 298.3)
XYZxyz(3.1057, 1.8422, 8.5778)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301654 #3A5416
analogous
#161B54 #301654 #4F1654
triadic
#301654 #543016 #165430
tetradic
#301654 #54161B #3A5416 #16544F
square
#301654 #54161B #3A5416 #16544F
split-complementary
#301654 #544F16 #1B5416
monochromatic
#0E0618 #140924 #301654 #4C2384 #672FB5

Accessibility & contrast

On white

15.35
#301654 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301654
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301654#FFFFFF#000000##FFFFFF
##3016541.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #301654;
/* rgb */ color: rgb(48, 22, 84);
/* oklch */ color: oklch(27.6% 0.107 298.3);
Tailwind
colors: {
  custom: {
    50: '#6c5585',
    500: '#301654',
    950: '#000000',
  },
}
SCSS
$custom: #301654;
$custom-light: #6c5585;
$custom-dark: #000000;
JSON
{
  "hex": "#301654",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 84
  },
  "hsl": {
    "h": 265.161,
    "s": 58.491,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27631,
    "c": 0.10667,
    "h": 298.3
  },
  "luminance": 0.01842
}

Semantic roles & 50–950 ramp

primary
#301654
secondary
#698B3A
accent
#E246A0
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #301654

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

Preview Lab → · Contrast checker → · Palette generator →

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