#301F88#301F88

#301F88 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.163 H 280.7°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#301F88
RGBrgb(48, 31, 136)
HSLhsl(250, 63%, 33%)
HSVhsv(250, 77%, 53%)
CMYKcmyk(64.7%, 77.2%, 0%, 46.7%)
CIE-LABlab(21.53, 39.00, -55.47)
CIE-LCHlch(21.53, 67.80, 305.11°)
OKLaboklab(34.07% 0.0303 -0.16)
OKLCHoklch(34.07% 0.163 280.7)
XYZxyz(6.1514, 3.3855, 23.6171)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F88 #77881F
analogous
#1F4388 #301F88 #641F88
triadic
#301F88 #88301F #1F8830
tetradic
#301F88 #881F43 #77881F #1F8864
square
#301F88 #881F43 #77881F #1F8864
split-complementary
#301F88 #88641F #43881F
monochromatic
#0D0824 #1E1456 #301F88 #422ABA #624BD6

Accessibility & contrast

On white

12.52
#301F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#301F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F88
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F88#FFFFFF#000000##FFFFFF
##301F881.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#003086
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #301f88;
/* rgb */ color: rgb(48, 31, 136);
/* oklch */ color: oklch(34.1% 0.163 280.7);
Tailwind
colors: {
  custom: {
    50: '#755dac',
    500: '#301f88',
    950: '#000000',
  },
}
SCSS
$custom: #301f88;
$custom-light: #755dac;
$custom-dark: #000000;
JSON
{
  "hex": "#301f88",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 249.714,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34067,
    "c": 0.16289,
    "h": 280.7
  },
  "luminance": 0.03386
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #301F88

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

Preview Lab → · Contrast checker → · Palette generator →

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