#301F86#301F86

#301F86 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.160 H 281.1°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#301F86
RGBrgb(48, 31, 134)
HSLhsl(250, 62%, 32%)
HSVhsv(250, 77%, 53%)
CMYKcmyk(64.2%, 76.9%, 0%, 47.5%)
CIE-LABlab(21.32, 38.36, -54.56)
CIE-LCHlch(21.32, 66.69, 305.11°)
OKLaboklab(33.86% 0.0308 -0.1574)
OKLCHoklch(33.86% 0.16 281.1)
XYZxyz(6.0106, 3.3291, 22.8755)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F86 #75861F
analogous
#1F4286 #301F86 #641F86
triadic
#301F86 #86301F #1F8630
tetradic
#301F86 #861F42 #75861F #1F8664
square
#301F86 #861F42 #75861F #1F8664
split-complementary
#301F86 #86641F #42861F
monochromatic
#0C0823 #1E1454 #301F86 #422AB8 #614AD5

Accessibility & contrast

On white

12.61
#301F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#301F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F86
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F86#FFFFFF#000000##FFFFFF
##301F861.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #301f86;
/* rgb */ color: rgb(48, 31, 134);
/* oklch */ color: oklch(33.9% 0.160 281.1);
Tailwind
colors: {
  custom: {
    50: '#745daa',
    500: '#301f86',
    950: '#000000',
  },
}
SCSS
$custom: #301f86;
$custom-light: #745daa;
$custom-dark: #000000;
JSON
{
  "hex": "#301f86",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 249.903,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33856,
    "c": 0.16038,
    "h": 281.1
  },
  "luminance": 0.0333
}

Semantic roles & 50–950 ramp

primary
#301F86
secondary
#A5B849
accent
#E542CB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301F86

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

Preview Lab → · Contrast checker → · Palette generator →

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