#301F9F#301F9F

#301F9F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.6% C 0.191 H 277.2°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#301F9F
RGBrgb(48, 31, 159)
HSLhsl(248, 67%, 37%)
HSVhsv(248, 81%, 62%)
CMYKcmyk(69.8%, 80.5%, 0%, 37.6%)
CIE-LABlab(24.03, 46.24, -65.55)
CIE-LCHlch(24.03, 80.21, 305.20°)
OKLaboklab(36.57% 0.0241 -0.1894)
OKLCHoklch(36.57% 0.191 277.2)
XYZxyz(7.9649, 4.1108, 33.1679)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F9F #8E9F1F
analogous
#1F4E9F #301F9F #701F9F
triadic
#301F9F #9F301F #1F9F30
tetradic
#301F9F #9F1F4E #8E9F1F #1F9F70
square
#301F9F #9F1F4E #8E9F1F #1F9F70
split-complementary
#301F9F #9F701F #4E9F1F
monochromatic
#110B39 #21156C #301F9F #3F29D2 #6B5ADF

Accessibility & contrast

On white

11.52
#301F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#301F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F9F
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F9F#FFFFFF#000000##FFFFFF
##301F9F1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #301f9f;
/* rgb */ color: rgb(48, 31, 159);
/* oklch */ color: oklch(36.6% 0.191 277.2);
Tailwind
colors: {
  custom: {
    50: '#7a5fbd',
    500: '#301f9f',
    950: '#000000',
  },
}
SCSS
$custom: #301f9f;
$custom-light: #7a5fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#301f9f",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 247.969,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36566,
    "c": 0.19092,
    "h": 277.2
  },
  "luminance": 0.04112
}

Semantic roles & 50–950 ramp

primary
#301F9F
secondary
#B4C357
accent
#EA3ED3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #301F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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