#301F96#301F96

#301F96 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.180 H 278.5°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#301F96
RGBrgb(48, 31, 150)
HSLhsl(249, 66%, 35%)
HSVhsv(249, 79%, 59%)
CMYKcmyk(68%, 79.3%, 0%, 41.2%)
CIE-LABlab(23.03, 43.44, -61.68)
CIE-LCHlch(23.03, 75.44, 305.15°)
OKLaboklab(35.57% 0.0266 -0.1782)
OKLCHoklch(35.57% 0.18 278.5)
XYZxyz(7.2122, 3.8097, 29.2035)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F96 #85961F
analogous
#1F4A96 #301F96 #6B1F96
triadic
#301F96 #96301F #1F9630
tetradic
#301F96 #961F4A #85961F #1F966B
square
#301F96 #961F4A #85961F #1F966B
split-complementary
#301F96 #966B1F #4A961F
monochromatic
#100A31 #201563 #301F96 #4029C9 #6754DC

Accessibility & contrast

On white

11.92
#301F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#301F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F96
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F96#FFFFFF#000000##FFFFFF
##301F961.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003294
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #301f96;
/* rgb */ color: rgb(48, 31, 150);
/* oklch */ color: oklch(35.6% 0.180 278.5);
Tailwind
colors: {
  custom: {
    50: '#785eb6',
    500: '#301f96',
    950: '#000000',
  },
}
SCSS
$custom: #301f96;
$custom-light: #785eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#301f96",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 248.571,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35572,
    "c": 0.18014,
    "h": 278.5
  },
  "luminance": 0.0381
}

Semantic roles & 50–950 ramp

primary
#301F96
secondary
#AFBF52
accent
#E93FD0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #301F96

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

Preview Lab → · Contrast checker → · Palette generator →

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