#303CAC#303CAC

#303CAC is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.2% C 0.177 H 271.6°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#303CAC
RGBrgb(48, 60, 172)
HSLhsl(234, 56%, 43%)
HSVhsv(234, 72%, 67%)
CMYKcmyk(72.1%, 65.1%, 0%, 32.5%)
CIE-LABlab(31.43, 33.76, -61.22)
CIE-LCHlch(31.43, 69.91, 298.87°)
OKLaboklab(42.25% 0.005 -0.1769)
OKLCHoklch(42.25% 0.177 271.6)
XYZxyz(10.2787, 6.8376, 39.7998)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303CAC #ACA030
analogous
#307AAC #303CAC #6230AC
triadic
#303CAC #AC303C #3CAC30
tetradic
#303CAC #AC307A #ACA030 #30AC62
square
#303CAC #AC307A #ACA030 #30AC62
split-complementary
#303CAC #AC6230 #7AAC30
monochromatic
#151B4C #232B7C #303CAC #4C59CD #7C85DA

Accessibility & contrast

On white

8.87
#303CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#303CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303CAC
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303CAC#FFFFFF#000000##FFFFFF
##303CAC1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#00596E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #303cac;
/* rgb */ color: rgb(48, 60, 172);
/* oklch */ color: oklch(42.2% 0.177 271.6);
Tailwind
colors: {
  custom: {
    50: '#7a72c6',
    500: '#303cac',
    950: '#000000',
  },
}
SCSS
$custom: #303cac;
$custom-light: #7a72c6;
$custom-dark: #000000;
JSON
{
  "hex": "#303cac",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 172
  },
  "hsl": {
    "h": 234.194,
    "s": 56.364,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42249,
    "c": 0.17695,
    "h": 271.6
  },
  "luminance": 0.06839
}

Semantic roles & 50–950 ramp

primary
#303CAC
secondary
#C3BB75
accent
#D148E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #303CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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