#303CB5#303CB5

#303CB5 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.1% C 0.189 H 271.3°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#303CB5
RGBrgb(48, 60, 181)
HSLhsl(235, 58%, 45%)
HSVhsv(235, 73%, 71%)
CMYKcmyk(73.5%, 66.9%, 0%, 29%)
CIE-LABlab(32.25, 36.97, -65.24)
CIE-LCHlch(32.25, 74.99, 299.54°)
OKLaboklab(43.09% 0.0043 -0.1887)
OKLCHoklch(43.09% 0.189 271.3)
XYZxyz(11.1724, 7.1951, 44.5071)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303CB5 #B5A930
analogous
#307FB5 #303CB5 #6630B5
triadic
#303CB5 #B5303C #3CB530
tetradic
#303CB5 #B5307F #B5A930 #30B566
square
#303CB5 #B5307F #B5A930 #30B566
split-complementary
#303CB5 #B56630 #7FB530
monochromatic
#161C54 #232C85 #303CB5 #515DD1 #828ADE

Accessibility & contrast

On white

8.61
#303CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#303CB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303CB5
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303CB5#FFFFFF#000000##FFFFFF
##303CB51.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#0046B3
Tritanopia (blue-blind)
#005C73
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #303cb5;
/* rgb */ color: rgb(48, 60, 181);
/* oklch */ color: oklch(43.1% 0.189 271.3);
Tailwind
colors: {
  custom: {
    50: '#7c72cc',
    500: '#303cb5',
    950: '#000000',
  },
}
SCSS
$custom: #303cb5;
$custom-light: #7c72cc;
$custom-dark: #000000;
JSON
{
  "hex": "#303cb5",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 181
  },
  "hsl": {
    "h": 234.586,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43091,
    "c": 0.18872,
    "h": 271.3
  },
  "luminance": 0.07196
}

Semantic roles & 50–950 ramp

primary
#303CB5
secondary
#C7C07A
accent
#D346E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #303CB5

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

Preview Lab → · Contrast checker → · Palette generator →

#303CB5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva