#301F97#301F97

#301F97 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.181 H 278.3°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#301F97
RGBrgb(48, 31, 151)
HSLhsl(249, 66%, 36%)
HSVhsv(249, 79%, 59%)
CMYKcmyk(68.2%, 79.5%, 0%, 40.8%)
CIE-LABlab(23.14, 43.75, -62.12)
CIE-LCHlch(23.14, 75.98, 305.16°)
OKLaboklab(35.68% 0.0263 -0.1794)
OKLCHoklch(35.68% 0.181 278.3)
XYZxyz(7.2930, 3.8421, 29.6294)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F97 #86971F
analogous
#1F4A97 #301F97 #6C1F97
triadic
#301F97 #97301F #1F9730
tetradic
#301F97 #971F4A #86971F #1F976C
square
#301F97 #971F4A #86971F #1F976C
split-complementary
#301F97 #976C1F #4A971F
monochromatic
#100A31 #201564 #301F97 #4029CA #6854DC

Accessibility & contrast

On white

11.87
#301F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#301F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F97
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F97#FFFFFF#000000##FFFFFF
##301F971.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #301f97;
/* rgb */ color: rgb(48, 31, 151);
/* oklch */ color: oklch(35.7% 0.181 278.3);
Tailwind
colors: {
  custom: {
    50: '#785eb7',
    500: '#301f97',
    950: '#000000',
  },
}
SCSS
$custom: #301f97;
$custom-light: #785eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#301f97",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 248.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35682,
    "c": 0.18135,
    "h": 278.3
  },
  "luminance": 0.03843
}

Semantic roles & 50–950 ramp

primary
#301F97
secondary
#B0BF52
accent
#E93FD1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #301F97

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

Preview Lab → · Contrast checker → · Palette generator →

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