#301C96#301C96

#301C96 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.183 H 278.8°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#301C96
RGBrgb(48, 28, 150)
HSLhsl(250, 69%, 35%)
HSVhsv(250, 81%, 59%)
CMYKcmyk(68%, 81.3%, 0%, 41.2%)
CIE-LABlab(22.52, 44.93, -62.54)
CIE-LCHlch(22.52, 77.01, 305.70°)
OKLaboklab(35.21% 0.0281 -0.1806)
OKLCHoklch(35.21% 0.183 278.8)
XYZxyz(7.1374, 3.6603, 29.1786)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C96 #82961C
analogous
#1C4596 #301C96 #6D1C96
triadic
#301C96 #96301C #1C9630
tetradic
#301C96 #961C45 #82961C #1C966D
square
#301C96 #961C45 #82961C #1C966D
split-complementary
#301C96 #966D1C #45961C
monochromatic
#0F092F #1F1262 #301C96 #4126CA #664EDE

Accessibility & contrast

On white

12.12
#301C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#301C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C96
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C96#FFFFFF#000000##FFFFFF
##301C961.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003194
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #301c96;
/* rgb */ color: rgb(48, 28, 150);
/* oklch */ color: oklch(35.2% 0.183 278.8);
Tailwind
colors: {
  custom: {
    50: '#785cb6',
    500: '#301c96',
    950: '#000000',
  },
}
SCSS
$custom: #301c96;
$custom-light: #785cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#301c96",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 150
  },
  "hsl": {
    "h": 249.836,
    "s": 68.539,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35212,
    "c": 0.18279,
    "h": 278.8
  },
  "luminance": 0.03661
}

Semantic roles & 50–950 ramp

primary
#301C96
secondary
#AEC14D
accent
#EB3CCF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301C96

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

Preview Lab → · Contrast checker → · Palette generator →

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