#301F8F#301F8F

#301F8F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.172 H 279.5°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#301F8F
RGBrgb(48, 31, 143)
HSLhsl(249, 64%, 34%)
HSVhsv(249, 78%, 56%)
CMYKcmyk(66.4%, 78.3%, 0%, 43.9%)
CIE-LABlab(22.27, 41.23, -58.61)
CIE-LCHlch(22.27, 71.66, 305.13°)
OKLaboklab(34.81% 0.0285 -0.1692)
OKLCHoklch(34.81% 0.172 279.5)
XYZxyz(6.6653, 3.5910, 26.3232)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F8F #7E8F1F
analogous
#1F468F #301F8F #681F8F
triadic
#301F8F #8F301F #1F8F30
tetradic
#301F8F #8F1F46 #7E8F1F #1F8F68
square
#301F8F #8F1F46 #7E8F1F #1F8F68
split-complementary
#301F8F #8F681F #468F1F
monochromatic
#0E092A #1F145D #301F8F #412AC1 #644FD9

Accessibility & contrast

On white

12.22
#301F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#301F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F8F
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F8F#FFFFFF#000000##FFFFFF
##301F8F1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #301f8f;
/* rgb */ color: rgb(48, 31, 143);
/* oklch */ color: oklch(34.8% 0.172 279.5);
Tailwind
colors: {
  custom: {
    50: '#765eb1',
    500: '#301f8f',
    950: '#000000',
  },
}
SCSS
$custom: #301f8f;
$custom-light: #765eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#301f8f",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 249.107,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34813,
    "c": 0.17159,
    "h": 279.5
  },
  "luminance": 0.03592
}

Semantic roles & 50–950 ramp

primary
#301F8F
secondary
#ABBC4E
accent
#E740CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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