#301F8B#301F8B

#301F8B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.167 H 280.2°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#301F8B
RGBrgb(48, 31, 139)
HSLhsl(249, 64%, 33%)
HSVhsv(249, 78%, 55%)
CMYKcmyk(65.5%, 77.7%, 0%, 45.5%)
CIE-LABlab(21.84, 39.96, -56.82)
CIE-LCHlch(21.84, 69.46, 305.11°)
OKLaboklab(34.39% 0.0295 -0.164)
OKLCHoklch(34.39% 0.167 280.2)
XYZxyz(6.3676, 3.4719, 24.7557)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F8B #7A8B1F
analogous
#1F448B #301F8B #661F8B
triadic
#301F8B #8B301F #1F8B30
tetradic
#301F8B #8B1F44 #7A8B1F #1F8B66
square
#301F8B #8B1F44 #7A8B1F #1F8B66
split-complementary
#301F8B #8B661F #448B1F
monochromatic
#0D0927 #1F1459 #301F8B #412ABD #634DD7

Accessibility & contrast

On white

12.39
#301F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#301F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F8B
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F8B#FFFFFF#000000##FFFFFF
##301F8B1.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #301f8b;
/* rgb */ color: rgb(48, 31, 139);
/* oklch */ color: oklch(34.4% 0.167 280.2);
Tailwind
colors: {
  custom: {
    50: '#755dae',
    500: '#301f8b',
    950: '#000000',
  },
}
SCSS
$custom: #301f8b;
$custom-light: #755dae;
$custom-dark: #000000;
JSON
{
  "hex": "#301f8b",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 249.444,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34385,
    "c": 0.16664,
    "h": 280.2
  },
  "luminance": 0.03472
}

Semantic roles & 50–950 ramp

primary
#301F8B
secondary
#A9BA4C
accent
#E741CD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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