#301746#301746

#301746 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.086 H 305.9°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#301746
RGBrgb(48, 23, 70)
HSLhsl(272, 51%, 18%)
HSVhsv(272, 67%, 27%)
CMYKcmyk(31.4%, 67.1%, 0%, 72.5%)
CIE-LABlab(13.73, 23.10, -24.76)
CIE-LCHlch(13.73, 33.86, 313.01°)
OKLaboklab(26.62% 0.0506 -0.0699)
OKLCHoklch(26.62% 0.086 305.9)
XYZxyz(2.6306, 1.6834, 5.9795)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301746 #2D4617
analogous
#181746 #301746 #461744
triadic
#301746 #463017 #174630
tetradic
#301746 #461817 #2D4617 #174446
square
#301746 #461817 #2D4617 #174446
split-complementary
#301746 #444617 #174618
monochromatic
#100817 #100818 #301746 #502674 #6F35A2

Accessibility & contrast

On white

15.71
#301746 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#301746 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301746
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301746#FFFFFF#000000##FFFFFF
##3017461.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032248
Deuteranopia (green-blind)
#0E2345
Tritanopia (blue-blind)
#2C202C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #301746;
/* rgb */ color: rgb(48, 23, 70);
/* oklch */ color: oklch(26.6% 0.086 305.9);
Tailwind
colors: {
  custom: {
    50: '#6a557a',
    500: '#301746',
    950: '#000000',
  },
}
SCSS
$custom: #301746;
$custom-light: #6a557a;
$custom-dark: #000000;
JSON
{
  "hex": "#301746",
  "rgb": {
    "r": 48,
    "g": 23,
    "b": 70
  },
  "hsl": {
    "h": 271.915,
    "s": 50.538,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26617,
    "c": 0.08632,
    "h": 305.9
  },
  "luminance": 0.01683
}

Semantic roles & 50–950 ramp

primary
#301746
secondary
#5A7D3C
accent
#DA4E8F
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #301746

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

Preview Lab → · Contrast checker → · Palette generator →

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