#301F9A#301F9A

#301F9A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.0% C 0.185 H 277.9°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#301F9A
RGBrgb(48, 31, 154)
HSLhsl(248, 66%, 36%)
HSVhsv(248, 80%, 60%)
CMYKcmyk(68.8%, 79.9%, 0%, 39.6%)
CIE-LABlab(23.47, 44.69, -63.41)
CIE-LCHlch(23.47, 77.58, 305.17°)
OKLaboklab(36.01% 0.0255 -0.1832)
OKLCHoklch(36.01% 0.185 277.9)
XYZxyz(7.5398, 3.9408, 30.9289)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F9A #899A1F
analogous
#1F4C9A #301F9A #6E1F9A
triadic
#301F9A #9A301F #1F9A30
tetradic
#301F9A #9A1F4C #899A1F #1F9A6E
square
#301F9A #9A1F4C #899A1F #1F9A6E
split-complementary
#301F9A #9A6E1F #4C9A1F
monochromatic
#100A34 #201567 #301F9A #4029CD #6956DD

Accessibility & contrast

On white

11.74
#301F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#301F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F9A
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F9A#FFFFFF#000000##FFFFFF
##301F9A1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9D
Deuteranopia (green-blind)
#003398
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #301f9a;
/* rgb */ color: rgb(48, 31, 154);
/* oklch */ color: oklch(36.0% 0.185 277.9);
Tailwind
colors: {
  custom: {
    50: '#795eb9',
    500: '#301f9a',
    950: '#000000',
  },
}
SCSS
$custom: #301f9a;
$custom-light: #795eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#301f9a",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 248.293,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36012,
    "c": 0.18496,
    "h": 277.9
  },
  "luminance": 0.03941
}

Semantic roles & 50–950 ramp

primary
#301F9A
secondary
#B2C154
accent
#E93ED2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #301F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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