#303C99#303C99

#303C99 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.5% C 0.151 H 272.2°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#303C99
RGBrgb(48, 60, 153)
HSLhsl(233, 52%, 39%)
HSVhsv(233, 69%, 60%)
CMYKcmyk(68.6%, 60.8%, 0%, 40%)
CIE-LABlab(29.81, 26.86, -52.40)
CIE-LCHlch(29.81, 58.88, 297.14°)
OKLaboklab(40.55% 0.0057 -0.151)
OKLCHoklch(40.55% 0.151 272.2)
XYZxyz(8.5826, 6.1592, 30.8674)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303C99 #998D30
analogous
#307199 #303C99 #593099
triadic
#303C99 #99303C #3C9930
tetradic
#303C99 #993071 #998D30 #309959
square
#303C99 #993071 #998D30 #309959
split-complementary
#303C99 #995930 #719930
monochromatic
#13173C #212A6A #303C99 #4251C4 #717CD2

Accessibility & contrast

On white

9.41
#303C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#303C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303C99
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303C99#FFFFFF#000000##FFFFFF
##303C991.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #303c99;
/* rgb */ color: rgb(48, 60, 153);
/* oklch */ color: oklch(40.5% 0.151 272.2);
Tailwind
colors: {
  custom: {
    50: '#7671b8',
    500: '#303c99',
    950: '#000000',
  },
}
SCSS
$custom: #303c99;
$custom-light: #7671b8;
$custom-dark: #000000;
JSON
{
  "hex": "#303c99",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 153
  },
  "hsl": {
    "h": 233.143,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40549,
    "c": 0.15113,
    "h": 272.2
  },
  "luminance": 0.0616
}

Semantic roles & 50–950 ramp

primary
#303C99
secondary
#BAB16B
accent
#CB4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #303C99

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

Preview Lab → · Contrast checker → · Palette generator →

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