#301B9A#301B9A

#301B9A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.5% C 0.188 H 278.4°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#301B9A
RGBrgb(48, 27, 154)
HSLhsl(250, 70%, 35%)
HSVhsv(250, 82%, 60%)
CMYKcmyk(68.8%, 82.5%, 0%, 39.6%)
CIE-LABlab(22.81, 46.62, -64.51)
CIE-LCHlch(22.81, 79.60, 305.85°)
OKLaboklab(35.55% 0.0274 -0.1863)
OKLCHoklch(35.55% 0.188 278.4)
XYZxyz(7.4417, 3.7447, 30.8962)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B9A #859A1B
analogous
#1B469A #301B9A #6F1B9A
triadic
#301B9A #9A301B #1B9A30
tetradic
#301B9A #9A1B46 #859A1B #1B9A6F
square
#301B9A #9A1B46 #859A1B #1B9A6F
split-complementary
#301B9A #9A6F1B #469A1B
monochromatic
#100932 #201266 #301B9A #4024CE #674FE0

Accessibility & contrast

On white

12.01
#301B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#301B9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301B9A
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B9A#FFFFFF#000000##FFFFFF
##301B9A1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9D
Deuteranopia (green-blind)
#003198
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #301b9a;
/* rgb */ color: rgb(48, 27, 154);
/* oklch */ color: oklch(35.5% 0.188 278.4);
Tailwind
colors: {
  custom: {
    50: '#795cb9',
    500: '#301b9a',
    950: '#000000',
  },
}
SCSS
$custom: #301b9a;
$custom-light: #795cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#301b9a",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 154
  },
  "hsl": {
    "h": 249.921,
    "s": 70.166,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35549,
    "c": 0.18834,
    "h": 278.4
  },
  "luminance": 0.03745
}

Semantic roles & 50–950 ramp

primary
#301B9A
secondary
#AFC34E
accent
#ED3BD0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #301B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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