#301FA0#301FA0

#301FA0 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.7% C 0.192 H 277.1°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#301FA0
RGBrgb(48, 31, 160)
HSLhsl(248, 68%, 37%)
HSVhsv(248, 81%, 63%)
CMYKcmyk(70%, 80.6%, 0%, 37.3%)
CIE-LABlab(24.15, 46.55, -65.97)
CIE-LCHlch(24.15, 80.74, 305.21°)
OKLaboklab(36.68% 0.0238 -0.1906)
OKLCHoklch(36.68% 0.192 277.1)
XYZxyz(8.0520, 4.1457, 33.6267)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301FA0 #8FA01F
analogous
#1F4FA0 #301FA0 #711FA0
triadic
#301FA0 #A0301F #1FA030
tetradic
#301FA0 #A01F4F #8FA01F #1FA071
square
#301FA0 #A01F4F #8FA01F #1FA071
split-complementary
#301FA0 #A0711F #4FA01F
monochromatic
#110B39 #21156D #301FA0 #3F29D3 #6C5ADF

Accessibility & contrast

On white

11.48
#301FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#301FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301FA0
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301FA0#FFFFFF#000000##FFFFFF
##301FA01.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA4
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #301fa0;
/* rgb */ color: rgb(48, 31, 160);
/* oklch */ color: oklch(36.7% 0.192 277.1);
Tailwind
colors: {
  custom: {
    50: '#7a5fbd',
    500: '#301fa0',
    950: '#000000',
  },
}
SCSS
$custom: #301fa0;
$custom-light: #7a5fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#301fa0",
  "rgb": {
    "r": 48,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 247.907,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36678,
    "c": 0.19211,
    "h": 277.1
  },
  "luminance": 0.04146
}

Semantic roles & 50–950 ramp

primary
#301FA0
secondary
#B5C358
accent
#EA3DD4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #301FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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