#301B9C#301B9C

#301B9C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.8% C 0.191 H 278.1°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#301B9C
RGBrgb(48, 27, 156)
HSLhsl(250, 70%, 36%)
HSVhsv(250, 83%, 61%)
CMYKcmyk(69.2%, 82.7%, 0%, 38.8%)
CIE-LABlab(23.04, 47.23, -65.36)
CIE-LCHlch(23.04, 80.63, 305.85°)
OKLaboklab(35.78% 0.0268 -0.1888)
OKLCHoklch(35.78% 0.191 278.1)
XYZxyz(7.6097, 3.8119, 31.7808)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B9C #879C1B
analogous
#1B479C #301B9C #701B9C
triadic
#301B9C #9C301B #1B9C30
tetradic
#301B9C #9C1B47 #879C1B #1B9C70
square
#301B9C #9C1B47 #879C1B #1B9C70
split-complementary
#301B9C #9C701B #479C1B
monochromatic
#100934 #201268 #301B9C #4024D0 #6851E1

Accessibility & contrast

On white

11.91
#301B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#301B9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B9C
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B9C#FFFFFF#000000##FFFFFF
##301B9C1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9F
Deuteranopia (green-blind)
#00329A
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #301b9c;
/* rgb */ color: rgb(48, 27, 156);
/* oklch */ color: oklch(35.8% 0.191 278.1);
Tailwind
colors: {
  custom: {
    50: '#795cbb',
    500: '#301b9c',
    950: '#000000',
  },
}
SCSS
$custom: #301b9c;
$custom-light: #795cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#301b9c",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 156
  },
  "hsl": {
    "h": 249.767,
    "s": 70.492,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35776,
    "c": 0.19069,
    "h": 278.1
  },
  "luminance": 0.03813
}

Semantic roles & 50–950 ramp

primary
#301B9C
secondary
#B1C34F
accent
#ED3BD0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #301B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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