#301F87#301F87

#301F87 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.162 H 280.9°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#301F87
RGBrgb(48, 31, 135)
HSLhsl(250, 63%, 33%)
HSVhsv(250, 77%, 53%)
CMYKcmyk(64.4%, 77%, 0%, 47.1%)
CIE-LABlab(21.42, 38.68, -55.01)
CIE-LCHlch(21.42, 67.25, 305.11°)
OKLaboklab(33.96% 0.0306 -0.1587)
OKLCHoklch(33.96% 0.162 280.9)
XYZxyz(6.0807, 3.3572, 23.2445)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F87 #76871F
analogous
#1F4287 #301F87 #641F87
triadic
#301F87 #87301F #1F8730
tetradic
#301F87 #871F42 #76871F #1F8764
square
#301F87 #871F42 #76871F #1F8764
split-complementary
#301F87 #87641F #42871F
monochromatic
#0D0823 #1E1455 #301F87 #422AB9 #614BD6

Accessibility & contrast

On white

12.56
#301F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301F87
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F87#FFFFFF#000000##FFFFFF
##301F871.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #301f87;
/* rgb */ color: rgb(48, 31, 135);
/* oklch */ color: oklch(34.0% 0.162 280.9);
Tailwind
colors: {
  custom: {
    50: '#745dab',
    500: '#301f87',
    950: '#000000',
  },
}
SCSS
$custom: #301f87;
$custom-light: #745dab;
$custom-dark: #000000;
JSON
{
  "hex": "#301f87",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 249.808,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33961,
    "c": 0.16163,
    "h": 280.9
  },
  "luminance": 0.03358
}

Semantic roles & 50–950 ramp

primary
#301F87
secondary
#A6B84A
accent
#E642CB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301F87

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

Preview Lab → · Contrast checker → · Palette generator →

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