#301F8E#301F8E

#301F8E is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.170 H 279.7°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#301F8E
RGBrgb(48, 31, 142)
HSLhsl(249, 64%, 34%)
HSVhsv(249, 78%, 56%)
CMYKcmyk(66.2%, 78.2%, 0%, 44.3%)
CIE-LABlab(22.16, 40.91, -58.16)
CIE-LCHlch(22.16, 71.11, 305.12°)
OKLaboklab(34.71% 0.0287 -0.1679)
OKLCHoklch(34.71% 0.17 279.7)
XYZxyz(6.5898, 3.5608, 25.9260)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F8E #7D8E1F
analogous
#1F468E #301F8E #681F8E
triadic
#301F8E #8E301F #1F8E30
tetradic
#301F8E #8E1F46 #7D8E1F #1F8E68
square
#301F8E #8E1F46 #7D8E1F #1F8E68
split-complementary
#301F8E #8E681F #468E1F
monochromatic
#0E092A #1F145C #301F8E #412AC0 #644FD9

Accessibility & contrast

On white

12.26
#301F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#301F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F8E
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F8E#FFFFFF#000000##FFFFFF
##301F8E1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #301f8e;
/* rgb */ color: rgb(48, 31, 142);
/* oklch */ color: oklch(34.7% 0.170 279.7);
Tailwind
colors: {
  custom: {
    50: '#765eb0',
    500: '#301f8e',
    950: '#000000',
  },
}
SCSS
$custom: #301f8e;
$custom-light: #765eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#301f8e",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 249.189,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34705,
    "c": 0.17035,
    "h": 279.7
  },
  "luminance": 0.03561
}

Semantic roles & 50–950 ramp

primary
#301F8E
secondary
#ABBB4D
accent
#E741CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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