#301FA9#301FA9

#301FA9 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.7% C 0.203 H 276.0°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#301FA9
RGBrgb(48, 31, 169)
HSLhsl(247, 69%, 39%)
HSVhsv(247, 82%, 66%)
CMYKcmyk(71.6%, 81.7%, 0%, 33.7%)
CIE-LABlab(25.17, 49.30, -69.73)
CIE-LCHlch(25.17, 85.40, 305.26°)
OKLaboklab(37.69% 0.0213 -0.2015)
OKLCHoklch(37.69% 0.203 276)
XYZxyz(8.8680, 4.4721, 37.9243)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301FA9 #98A91F
analogous
#1F53A9 #301FA9 #751FA9
triadic
#301FA9 #A9301F #1FA930
tetradic
#301FA9 #A91F53 #98A91F #1FA975
square
#301FA9 #A91F53 #98A91F #1FA975
split-complementary
#301FA9 #A9751F #53A91F
monochromatic
#130C42 #211675 #301FA9 #422DD8 #7060E2

Accessibility & contrast

On white

11.08
#301FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#301FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301FA9
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301FA9#FFFFFF#000000##FFFFFF
##301FA91.0011.081.8911.08
#FFFFFF11.081.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AD
Deuteranopia (green-blind)
#0036A7
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #301fa9;
/* rgb */ color: rgb(48, 31, 169);
/* oklch */ color: oklch(37.7% 0.203 276.0);
Tailwind
colors: {
  custom: {
    50: '#7c5fc4',
    500: '#301fa9',
    950: '#000000',
  },
}
SCSS
$custom: #301fa9;
$custom-light: #7c5fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#301fa9",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 247.391,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37691,
    "c": 0.20267,
    "h": 276
  },
  "luminance": 0.04473
}

Semantic roles & 50–950 ramp

primary
#301FA9
secondary
#BAC75D
accent
#EC3CD6
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #301FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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