#301C9F#301C9F

#301C9F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.193 H 277.5°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#301C9F
RGBrgb(48, 28, 159)
HSLhsl(249, 70%, 37%)
HSVhsv(249, 82%, 62%)
CMYKcmyk(69.8%, 82.4%, 0%, 37.6%)
CIE-LABlab(23.54, 47.67, -66.36)
CIE-LCHlch(23.54, 81.71, 305.69°)
OKLaboklab(36.23% 0.0254 -0.1917)
OKLCHoklch(36.23% 0.193 277.5)
XYZxyz(7.8902, 3.9614, 33.1430)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301C9F #8B9F1C
analogous
#1C4A9F #301C9F #721C9F
triadic
#301C9F #9F301C #1C9F30
tetradic
#301C9F #9F1C4A #8B9F1C #1C9F72
square
#301C9F #9F1C4A #8B9F1C #1C9F72
split-complementary
#301C9F #9F721C #4A9F1C
monochromatic
#110A37 #20136B #301C9F #4025D3 #6A54E1

Accessibility & contrast

On white

11.72
#301C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301C9F
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301C9F#FFFFFF#000000##FFFFFF
##301C9F1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #301c9f;
/* rgb */ color: rgb(48, 28, 159);
/* oklch */ color: oklch(36.2% 0.193 277.5);
Tailwind
colors: {
  custom: {
    50: '#7a5dbd',
    500: '#301c9f',
    950: '#000000',
  },
}
SCSS
$custom: #301c9f;
$custom-light: #7a5dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#301c9f",
  "rgb": {
    "r": 48,
    "g": 28,
    "b": 159
  },
  "hsl": {
    "h": 249.16,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36226,
    "c": 0.1934,
    "h": 277.5
  },
  "luminance": 0.03962
}

Semantic roles & 50–950 ramp

primary
#301C9F
secondary
#B3C453
accent
#ED3BD2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #301C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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