#301866#301866

#301866 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.127 H 290.5°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#301866
RGBrgb(48, 24, 102)
HSLhsl(258, 62%, 25%)
HSVhsv(258, 76%, 40%)
CMYKcmyk(52.9%, 76.5%, 0%, 60%)
CIE-LABlab(16.70, 32.13, -41.57)
CIE-LCHlch(16.70, 52.54, 307.70°)
OKLaboklab(29.62% 0.0447 -0.1193)
OKLCHoklch(29.62% 0.127 290.5)
XYZxyz(3.9431, 2.2408, 12.7925)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301866 #4E6618
analogous
#182766 #301866 #571866
triadic
#301866 #663018 #186630
tetradic
#301866 #661827 #4E6618 #186657
square
#301866 #661827 #4E6618 #186657
split-complementary
#301866 #665718 #276618
monochromatic
#0C0619 #190C34 #301866 #472498 #5F2FC9

Accessibility & contrast

On white

14.50
#301866 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#301866 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301866
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301866#FFFFFF#000000##FFFFFF
##3018661.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002764
Tritanopia (blue-blind)
#1E2D3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #301866;
/* rgb */ color: rgb(48, 24, 102);
/* oklch */ color: oklch(29.6% 0.127 290.5);
Tailwind
colors: {
  custom: {
    50: '#6f5792',
    500: '#301866',
    950: '#000000',
  },
}
SCSS
$custom: #301866;
$custom-light: #6f5792;
$custom-dark: #000000;
JSON
{
  "hex": "#301866",
  "rgb": {
    "r": 48,
    "g": 24,
    "b": 102
  },
  "hsl": {
    "h": 258.462,
    "s": 61.905,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29617,
    "c": 0.12742,
    "h": 290.5
  },
  "luminance": 0.02241
}

Semantic roles & 50–950 ramp

primary
#301866
secondary
#7F9C3E
accent
#E543B3
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #301866

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

Preview Lab → · Contrast checker → · Palette generator →

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