#301C9E#301C9E

#301C9E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.1% C 0.192 H 277.7°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#301C9E
RGBrgb(48, 28, 158)
HSLhsl(249, 70%, 36%)
HSVhsv(249, 82%, 62%)
CMYKcmyk(69.6%, 82.3%, 0%, 38%)
CIE-LABlab(23.43, 47.37, -65.94)
CIE-LCHlch(23.43, 81.19, 305.69°)
OKLaboklab(36.11% 0.0257 -0.1905)
OKLCHoklch(36.11% 0.192 277.7)
XYZxyz(7.8037, 3.9268, 32.6878)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C9E #8A9E1C
analogous
#1C499E #301C9E #711C9E
triadic
#301C9E #9E301C #1C9E30
tetradic
#301C9E #9E1C49 #8A9E1C #1C9E71
square
#301C9E #9E1C49 #8A9E1C #1C9E71
split-complementary
#301C9E #9E711C #499E1C
monochromatic
#100A36 #20136A #301C9E #4025D2 #6954E1

Accessibility & contrast

On white

11.76
#301C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#301C9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301C9E
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C9E#FFFFFF#000000##FFFFFF
##301C9E1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #301c9e;
/* rgb */ color: rgb(48, 28, 158);
/* oklch */ color: oklch(36.1% 0.192 277.7);
Tailwind
colors: {
  custom: {
    50: '#7a5dbc',
    500: '#301c9e',
    950: '#000000',
  },
}
SCSS
$custom: #301c9e;
$custom-light: #7a5dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#301c9e",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 158
  },
  "hsl": {
    "h": 249.231,
    "s": 69.892,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36112,
    "c": 0.19223,
    "h": 277.7
  },
  "luminance": 0.03928
}

Semantic roles & 50–950 ramp

primary
#301C9E
secondary
#B2C452
accent
#ED3BD1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #301C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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