#301F99#301F99

#301F99 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.184 H 278.1°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#301F99
RGBrgb(48, 31, 153)
HSLhsl(248, 66%, 36%)
HSVhsv(248, 80%, 60%)
CMYKcmyk(68.6%, 79.7%, 0%, 40%)
CIE-LABlab(23.36, 44.38, -62.98)
CIE-LCHlch(23.36, 77.04, 305.17°)
OKLaboklab(35.9% 0.0257 -0.1819)
OKLCHoklch(35.9% 0.184 278.1)
XYZxyz(7.4568, 3.9076, 30.4921)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F99 #88991F
analogous
#1F4B99 #301F99 #6D1F99
triadic
#301F99 #99301F #1F9930
tetradic
#301F99 #991F4B #88991F #1F996D
square
#301F99 #991F4B #88991F #1F996D
split-complementary
#301F99 #996D1F #4B991F
monochromatic
#100A33 #201566 #301F99 #4029CC #6956DD

Accessibility & contrast

On white

11.79
#301F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#301F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F99
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F99#FFFFFF#000000##FFFFFF
##301F991.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003397
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #301f99;
/* rgb */ color: rgb(48, 31, 153);
/* oklch */ color: oklch(35.9% 0.184 278.1);
Tailwind
colors: {
  custom: {
    50: '#785eb8',
    500: '#301f99',
    950: '#000000',
  },
}
SCSS
$custom: #301f99;
$custom-light: #785eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#301f99",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 248.361,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35901,
    "c": 0.18375,
    "h": 278.1
  },
  "luminance": 0.03908
}

Semantic roles & 50–950 ramp

primary
#301F99
secondary
#B1C054
accent
#E93FD1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #301F99

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

Preview Lab → · Contrast checker → · Palette generator →

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