#303CB4#303CB4

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

Color values

HEX#303CB4
RGBrgb(48, 60, 180)
HSLhsl(235, 58%, 45%)
HSVhsv(235, 73%, 71%)
CMYKcmyk(73.3%, 66.7%, 0%, 29.4%)
CIE-LABlab(32.16, 36.61, -64.80)
CIE-LCHlch(32.16, 74.43, 299.47°)
OKLaboklab(43% 0.0044 -0.1874)
OKLCHoklch(43% 0.187 271.3)
XYZxyz(11.0702, 7.1542, 43.9687)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303CB4 #B4A830
analogous
#307EB4 #303CB4 #6630B4
triadic
#303CB4 #B4303C #3CB430
tetradic
#303CB4 #B4307E #B4A830 #30B466
square
#303CB4 #B4307E #B4A830 #30B466
split-complementary
#303CB4 #B46630 #7EB430
monochromatic
#161C53 #232C84 #303CB4 #515CD1 #8189DD

Accessibility & contrast

On white

8.64
#303CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#303CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303CB4
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303CB4#FFFFFF#000000##FFFFFF
##303CB41.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0045B2
Tritanopia (blue-blind)
#005C73
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #303cb4;
/* rgb */ color: rgb(48, 60, 180);
/* oklch */ color: oklch(43.0% 0.187 271.3);
Tailwind
colors: {
  custom: {
    50: '#7c72cc',
    500: '#303cb4',
    950: '#000000',
  },
}
SCSS
$custom: #303cb4;
$custom-light: #7c72cc;
$custom-dark: #000000;
JSON
{
  "hex": "#303cb4",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 180
  },
  "hsl": {
    "h": 234.545,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42996,
    "c": 0.18742,
    "h": 271.3
  },
  "luminance": 0.07155
}

Semantic roles & 50–950 ramp

primary
#303CB4
secondary
#C6BF79
accent
#D347E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #303CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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