#301F8A#301F8A

#301F8A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.165 H 280.4°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#301F8A
RGBrgb(48, 31, 138)
HSLhsl(250, 63%, 33%)
HSVhsv(250, 78%, 54%)
CMYKcmyk(65.2%, 77.5%, 0%, 45.9%)
CIE-LABlab(21.74, 39.64, -56.37)
CIE-LCHlch(21.74, 68.91, 305.11°)
OKLaboklab(34.28% 0.0298 -0.1627)
OKLCHoklch(34.28% 0.165 280.4)
XYZxyz(6.2949, 3.4428, 24.3726)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F8A #798A1F
analogous
#1F438A #301F8A #651F8A
triadic
#301F8A #8A301F #1F8A30
tetradic
#301F8A #8A1F43 #798A1F #1F8A65
square
#301F8A #8A1F43 #798A1F #1F8A65
split-complementary
#301F8A #8A651F #438A1F
monochromatic
#0D0926 #1F1458 #301F8A #412ABC #624CD7

Accessibility & contrast

On white

12.44
#301F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301F8A
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F8A#FFFFFF#000000##FFFFFF
##301F8A1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #301f8a;
/* rgb */ color: rgb(48, 31, 138);
/* oklch */ color: oklch(34.3% 0.165 280.4);
Tailwind
colors: {
  custom: {
    50: '#755dad',
    500: '#301f8a',
    950: '#000000',
  },
}
SCSS
$custom: #301f8a;
$custom-light: #755dad;
$custom-dark: #000000;
JSON
{
  "hex": "#301f8a",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 249.533,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34278,
    "c": 0.16539,
    "h": 280.4
  },
  "luminance": 0.03443
}

Semantic roles & 50–950 ramp

primary
#301F8A
secondary
#A8BA4B
accent
#E641CC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #301F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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