#303CB6#303CB6

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

Color values

HEX#303CB6
RGBrgb(48, 60, 182)
HSLhsl(235, 58%, 45%)
HSVhsv(235, 74%, 71%)
CMYKcmyk(73.6%, 67%, 0%, 28.6%)
CIE-LABlab(32.34, 37.32, -65.69)
CIE-LCHlch(32.34, 75.55, 299.60°)
OKLaboklab(43.19% 0.0042 -0.19)
OKLCHoklch(43.19% 0.19 271.3)
XYZxyz(11.2754, 7.2363, 45.0494)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303CB6 #B6AA30
analogous
#307FB6 #303CB6 #6730B6
triadic
#303CB6 #B6303C #3CB630
tetradic
#303CB6 #B6307F #B6AA30 #30B667
square
#303CB6 #B6307F #B6AA30 #30B667
split-complementary
#303CB6 #B66730 #7FB630
monochromatic
#161C55 #232C86 #303CB6 #525DD1 #828BDE

Accessibility & contrast

On white

8.58
#303CB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#303CB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303CB6
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303CB6#FFFFFF#000000##FFFFFF
##303CB61.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BA
Deuteranopia (green-blind)
#0046B4
Tritanopia (blue-blind)
#005D74
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #303cb6;
/* rgb */ color: rgb(48, 60, 182);
/* oklch */ color: oklch(43.2% 0.190 271.3);
Tailwind
colors: {
  custom: {
    50: '#7c72cd',
    500: '#303cb6',
    950: '#000000',
  },
}
SCSS
$custom: #303cb6;
$custom-light: #7c72cd;
$custom-dark: #000000;
JSON
{
  "hex": "#303cb6",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 182
  },
  "hsl": {
    "h": 234.627,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43186,
    "c": 0.19001,
    "h": 271.3
  },
  "luminance": 0.07237
}

Semantic roles & 50–950 ramp

primary
#303CB6
secondary
#C7C07B
accent
#D446E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #303CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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