#301F91#301F91

#301F91 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.174 H 279.2°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#301F91
RGBrgb(48, 31, 145)
HSLhsl(249, 65%, 35%)
HSVhsv(249, 79%, 57%)
CMYKcmyk(66.9%, 78.6%, 0%, 43.1%)
CIE-LABlab(22.49, 41.86, -59.49)
CIE-LCHlch(22.49, 72.75, 305.13°)
OKLaboklab(35.03% 0.0279 -0.1718)
OKLCHoklch(35.03% 0.174 279.2)
XYZxyz(6.8181, 3.6521, 27.1282)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F91 #80911F
analogous
#1F4791 #301F91 #691F91
triadic
#301F91 #91301F #1F9130
tetradic
#301F91 #911F47 #80911F #1F9169
square
#301F91 #911F47 #80911F #1F9169
split-complementary
#301F91 #91691F #47911F
monochromatic
#0F092C #1F145F #301F91 #412AC3 #6551DA

Accessibility & contrast

On white

12.13
#301F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#301F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F91
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F91#FFFFFF#000000##FFFFFF
##301F911.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A94
Deuteranopia (green-blind)
#00318F
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #301f91;
/* rgb */ color: rgb(48, 31, 145);
/* oklch */ color: oklch(35.0% 0.174 279.2);
Tailwind
colors: {
  custom: {
    50: '#775eb2',
    500: '#301f91',
    950: '#000000',
  },
}
SCSS
$custom: #301f91;
$custom-light: #775eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#301f91",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 248.947,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35028,
    "c": 0.17405,
    "h": 279.2
  },
  "luminance": 0.03653
}

Semantic roles & 50–950 ramp

primary
#301F91
secondary
#ACBD4F
accent
#E840CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301F91

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

Preview Lab → · Contrast checker → · Palette generator →

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