#301674#301674

#301674 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.147 H 286.7°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#301674
RGBrgb(48, 22, 116)
HSLhsl(257, 68%, 27%)
HSVhsv(257, 81%, 45%)
CMYKcmyk(58.6%, 81%, 0%, 54.5%)
CIE-LABlab(17.75, 37.49, -48.97)
CIE-LCHlch(17.75, 61.68, 307.44°)
OKLaboklab(30.79% 0.0424 -0.141)
OKLCHoklch(30.79% 0.147 286.7)
XYZxyz(4.6573, 2.4629, 16.7496)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301674 #5A7416
analogous
#162B74 #301674 #5F1674
triadic
#301674 #743016 #167430
tetradic
#301674 #74162B #5A7416 #16745F
square
#301674 #74162B #5A7416 #16745F
split-complementary
#301674 #745F16 #2B7416
monochromatic
#0B051A #1B0C41 #301674 #4520A7 #5C2DD7

Accessibility & contrast

On white

14.07
#301674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#301674 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301674
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301674#FFFFFF#000000##FFFFFF
##3016741.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#103145
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #301674;
/* rgb */ color: rgb(48, 22, 116);
/* oklch */ color: oklch(30.8% 0.147 286.7);
Tailwind
colors: {
  custom: {
    50: '#71579d',
    500: '#301674',
    950: '#000000',
  },
}
SCSS
$custom: #301674;
$custom-light: #71579d;
$custom-dark: #000000;
JSON
{
  "hex": "#301674",
  "rgb": {
    "r": 48,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 256.596,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30785,
    "c": 0.14723,
    "h": 286.7
  },
  "luminance": 0.02463
}

Semantic roles & 50–950 ramp

primary
#301674
secondary
#8BAA3C
accent
#EB3DBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #301674

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

Preview Lab → · Contrast checker → · Palette generator →

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