#301B9B#301B9B

#301B9B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.190 H 278.2°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#301B9B
RGBrgb(48, 27, 155)
HSLhsl(250, 70%, 36%)
HSVhsv(250, 83%, 61%)
CMYKcmyk(69%, 82.6%, 0%, 39.2%)
CIE-LABlab(22.92, 46.92, -64.94)
CIE-LCHlch(22.92, 80.12, 305.85°)
OKLaboklab(35.66% 0.0271 -0.1876)
OKLCHoklch(35.66% 0.19 278.2)
XYZxyz(7.5253, 3.7781, 31.3367)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301B9B #869B1B
analogous
#1B469B #301B9B #701B9B
triadic
#301B9B #9B301B #1B9B30
tetradic
#301B9B #9B1B46 #869B1B #1B9B70
square
#301B9B #9B1B46 #869B1B #1B9B70
split-complementary
#301B9B #9B701B #469B1B
monochromatic
#100933 #201267 #301B9B #4024CF #6850E0

Accessibility & contrast

On white

11.96
#301B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #301B9B
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301B9B#FFFFFF#000000##FFFFFF
##301B9B1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9E
Deuteranopia (green-blind)
#003199
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #301b9b;
/* rgb */ color: rgb(48, 27, 155);
/* oklch */ color: oklch(35.7% 0.190 278.2);
Tailwind
colors: {
  custom: {
    50: '#795cba',
    500: '#301b9b',
    950: '#000000',
  },
}
SCSS
$custom: #301b9b;
$custom-light: #795cba;
$custom-dark: #000000;
JSON
{
  "hex": "#301b9b",
  "rgb": {
    "r": 48,
    "g": 27,
    "b": 155
  },
  "hsl": {
    "h": 249.844,
    "s": 70.33,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35663,
    "c": 0.18951,
    "h": 278.2
  },
  "luminance": 0.03779
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #301B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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