#301F9E#301F9E

#301F9E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.190 H 277.4°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#301F9E
RGBrgb(48, 31, 158)
HSLhsl(248, 67%, 37%)
HSVhsv(248, 80%, 62%)
CMYKcmyk(69.6%, 80.4%, 0%, 38%)
CIE-LABlab(23.92, 45.93, -65.12)
CIE-LCHlch(23.92, 79.69, 305.20°)
OKLaboklab(36.46% 0.0244 -0.1882)
OKLCHoklch(36.46% 0.19 277.4)
XYZxyz(7.8785, 4.0763, 32.7127)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301F9E #8D9E1F
analogous
#1F4E9E #301F9E #6F1F9E
triadic
#301F9E #9E301F #1F9E30
tetradic
#301F9E #9E1F4E #8D9E1F #1F9E6F
square
#301F9E #9E1F4E #8D9E1F #1F9E6F
split-complementary
#301F9E #9E6F1F #4E9E1F
monochromatic
#110B38 #20156B #301F9E #4029D1 #6B59DE

Accessibility & contrast

On white

11.57
#301F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301F9E
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301F9E#FFFFFF#000000##FFFFFF
##301F9E1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #301f9e;
/* rgb */ color: rgb(48, 31, 158);
/* oklch */ color: oklch(36.5% 0.190 277.4);
Tailwind
colors: {
  custom: {
    50: '#795fbc',
    500: '#301f9e',
    950: '#000000',
  },
}
SCSS
$custom: #301f9e;
$custom-light: #795fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#301f9e",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 248.031,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36455,
    "c": 0.18974,
    "h": 277.4
  },
  "luminance": 0.04077
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #301F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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