#303CB8#303CB8

#303CB8 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.4% C 0.193 H 271.2°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#303CB8
RGBrgb(48, 60, 184)
HSLhsl(235, 59%, 45%)
HSVhsv(235, 74%, 72%)
CMYKcmyk(73.9%, 67.4%, 0%, 27.8%)
CIE-LABlab(32.52, 38.03, -66.57)
CIE-LCHlch(32.52, 76.66, 299.74°)
OKLaboklab(43.38% 0.004 -0.1925)
OKLCHoklch(43.38% 0.193 271.2)
XYZxyz(11.4836, 7.3196, 46.1457)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303CB8 #B8AC30
analogous
#3080B8 #303CB8 #6830B8
triadic
#303CB8 #B8303C #3CB830
tetradic
#303CB8 #B83080 #B8AC30 #30B868
square
#303CB8 #B83080 #B8AC30 #30B868
split-complementary
#303CB8 #B86830 #80B830
monochromatic
#171C57 #232C87 #303CB8 #535ED2 #848CDF

Accessibility & contrast

On white

8.52
#303CB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#303CB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303CB8
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303CB8#FFFFFF#000000##FFFFFF
##303CB81.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BC
Deuteranopia (green-blind)
#0046B6
Tritanopia (blue-blind)
#005D75
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #303cb8;
/* rgb */ color: rgb(48, 60, 184);
/* oklch */ color: oklch(43.4% 0.193 271.2);
Tailwind
colors: {
  custom: {
    50: '#7d72ce',
    500: '#303cb8',
    950: '#000000',
  },
}
SCSS
$custom: #303cb8;
$custom-light: #7d72ce;
$custom-dark: #000000;
JSON
{
  "hex": "#303cb8",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 184
  },
  "hsl": {
    "h": 234.706,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43377,
    "c": 0.19258,
    "h": 271.2
  },
  "luminance": 0.07321
}

Semantic roles & 50–950 ramp

primary
#303CB8
secondary
#C8C17C
accent
#D446E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #303CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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