#301B74#301B74

#301B74 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.142 H 285.7°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#301B74
RGBrgb(48, 27, 116)
HSLhsl(254, 62%, 28%)
HSVhsv(254, 77%, 45%)
CMYKcmyk(58.6%, 76.7%, 0%, 54.5%)
CIE-LABlab(18.68, 34.83, -47.44)
CIE-LCHlch(18.68, 58.85, 306.29°)
OKLaboklab(31.44% 0.0385 -0.1365)
OKLCHoklch(31.44% 0.142 285.7)
XYZxyz(4.7623, 2.6729, 16.7846)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B74 #5F741B
analogous
#1B3274 #301B74 #5C1B74
triadic
#301B74 #74301B #1B7430
tetradic
#301B74 #741B32 #5F741B #1B745C
square
#301B74 #741B32 #5F741B #1B745C
split-complementary
#301B74 #745C1B #32741B
monochromatic
#0A0619 #1B0F42 #301B74 #4527A6 #5D39D1

Accessibility & contrast

On white

13.68
#301B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#301B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B74
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B74#FFFFFF#000000##FFFFFF
##301B741.0013.681.5313.68
#FFFFFF13.681.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#103346
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #301b74;
/* rgb */ color: rgb(48, 27, 116);
/* oklch */ color: oklch(31.4% 0.142 285.7);
Tailwind
colors: {
  custom: {
    50: '#715a9d',
    500: '#301b74',
    950: '#000000',
  },
}
SCSS
$custom: #301b74;
$custom-light: #715a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#301b74",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 254.157,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3144,
    "c": 0.14186,
    "h": 285.7
  },
  "luminance": 0.02673
}

Semantic roles & 50–950 ramp

primary
#301B74
secondary
#90A942
accent
#E542BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #301B74

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

Preview Lab → · Contrast checker → · Palette generator →

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