#301F9D#301F9D

#301F9D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.189 H 277.5°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#301F9D
RGBrgb(48, 31, 157)
HSLhsl(248, 67%, 37%)
HSVhsv(248, 80%, 62%)
CMYKcmyk(69.4%, 80.3%, 0%, 38.4%)
CIE-LABlab(23.81, 45.62, -64.70)
CIE-LCHlch(23.81, 79.16, 305.19°)
OKLaboklab(36.34% 0.0246 -0.1869)
OKLCHoklch(36.34% 0.189 277.5)
XYZxyz(7.7927, 4.0420, 32.2613)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F9D #8C9D1F
analogous
#1F4D9D #301F9D #6F1F9D
triadic
#301F9D #9D301F #1F9D30
tetradic
#301F9D #9D1F4D #8C9D1F #1F9D6F
square
#301F9D #9D1F4D #8C9D1F #1F9D6F
split-complementary
#301F9D #9D6F1F #4D9D1F
monochromatic
#110B37 #20156A #301F9D #4029D0 #6A58DE

Accessibility & contrast

On white

11.61
#301F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#301F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301F9D
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F9D#FFFFFF#000000##FFFFFF
##301F9D1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00339B
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #301f9d;
/* rgb */ color: rgb(48, 31, 157);
/* oklch */ color: oklch(36.3% 0.189 277.5);
Tailwind
colors: {
  custom: {
    50: '#795ebb',
    500: '#301f9d',
    950: '#000000',
  },
}
SCSS
$custom: #301f9d;
$custom-light: #795ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#301f9d",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 248.095,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36344,
    "c": 0.18855,
    "h": 277.5
  },
  "luminance": 0.04043
}

Semantic roles & 50–950 ramp

primary
#301F9D
secondary
#B3C256
accent
#EA3ED3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #301F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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