#301BA6#301BA6

#301BA6 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 36.9% C 0.202 H 276.7°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#301BA6
RGBrgb(48, 27, 166)
HSLhsl(249, 72%, 38%)
HSVhsv(249, 84%, 65%)
CMYKcmyk(71.1%, 83.7%, 0%, 34.9%)
CIE-LABlab(24.21, 50.21, -69.51)
CIE-LCHlch(24.21, 85.75, 305.84°)
OKLaboklab(36.92% 0.0237 -0.2009)
OKLCHoklch(36.92% 0.202 276.7)
XYZxyz(8.4915, 4.1646, 36.4253)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301BA6 #91A61B
analogous
#1B4BA6 #301BA6 #761BA6
triadic
#301BA6 #A6301B #1BA630
tetradic
#301BA6 #A61B4B #91A61B #1BA676
square
#301BA6 #A61B4B #91A61B #1BA676
split-complementary
#301BA6 #A6761B #4BA61B
monochromatic
#120A3D #211271 #301BA6 #3F24DB #6D58E4

Accessibility & contrast

On white

11.46
#301BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301BA6
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301BA6#FFFFFF#000000##FFFFFF
##301BA61.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAA
Deuteranopia (green-blind)
#0034A4
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #301ba6;
/* rgb */ color: rgb(48, 27, 166);
/* oklch */ color: oklch(36.9% 0.202 276.7);
Tailwind
colors: {
  custom: {
    50: '#7c5dc2',
    500: '#301ba6',
    950: '#000000',
  },
}
SCSS
$custom: #301ba6;
$custom-light: #7c5dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#301ba6",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 166
  },
  "hsl": {
    "h": 249.065,
    "s": 72.021,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36922,
    "c": 0.20226,
    "h": 276.7
  },
  "luminance": 0.04165
}

Semantic roles & 50–950 ramp

primary
#301BA6
secondary
#B6C756
accent
#EF39D3
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #301BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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