#301B80#301B80

#301B80 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.157 H 283.0°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#301B80
RGBrgb(48, 27, 128)
HSLhsl(252, 65%, 30%)
HSVhsv(252, 79%, 50%)
CMYKcmyk(62.5%, 78.9%, 0%, 49.8%)
CIE-LABlab(19.93, 38.61, -53.06)
CIE-LCHlch(19.93, 65.63, 306.04°)
OKLaboklab(32.69% 0.0352 -0.153)
OKLCHoklch(32.69% 0.157 283)
XYZxyz(5.5059, 2.9704, 20.7011)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B80 #6B801B
analogous
#1B3980 #301B80 #621B80
triadic
#301B80 #80301B #1B8030
tetradic
#301B80 #801B39 #6B801B #1B8062
square
#301B80 #801B39 #6B801B #1B8062
split-complementary
#301B80 #80621B #39801B
monochromatic
#0A061B #1D104D #301B80 #4326B3 #5E3FD6

Accessibility & contrast

On white

13.17
#301B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#301B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B80
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B80#FFFFFF#000000##FFFFFF
##301B801.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #301b80;
/* rgb */ color: rgb(48, 27, 128);
/* oklch */ color: oklch(32.7% 0.157 283.0);
Tailwind
colors: {
  custom: {
    50: '#735aa6',
    500: '#301b80',
    950: '#000000',
  },
}
SCSS
$custom: #301b80;
$custom-light: #735aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#301b80",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 252.475,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32689,
    "c": 0.15699,
    "h": 283
  },
  "luminance": 0.02971
}

Semantic roles & 50–950 ramp

primary
#301B80
secondary
#9CB443
accent
#E840C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #301B80

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

Preview Lab → · Contrast checker → · Palette generator →

#301B80 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva