#303C96#303C96

#303C96 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.3% C 0.147 H 272.2°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#303C96
RGBrgb(48, 60, 150)
HSLhsl(233, 52%, 39%)
HSVhsv(233, 68%, 59%)
CMYKcmyk(68%, 60%, 0%, 41.2%)
CIE-LABlab(29.57, 25.76, -50.97)
CIE-LCHlch(29.57, 57.11, 296.81°)
OKLaboklab(40.29% 0.0057 -0.1468)
OKLCHoklch(40.29% 0.147 272.2)
XYZxyz(8.3380, 6.0613, 29.5788)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303C96 #968A30
analogous
#306F96 #303C96 #573096
triadic
#303C96 #96303C #3C9630
tetradic
#303C96 #96306F #968A30 #309657
square
#303C96 #96306F #968A30 #309657
split-complementary
#303C96 #965730 #6F9630
monochromatic
#121739 #212968 #303C96 #4150C2 #6F7BD1

Accessibility & contrast

On white

9.49
#303C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#303C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303C96
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303C96#FFFFFF#000000##FFFFFF
##303C961.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A99
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #303c96;
/* rgb */ color: rgb(48, 60, 150);
/* oklch */ color: oklch(40.3% 0.147 272.2);
Tailwind
colors: {
  custom: {
    50: '#7571b6',
    500: '#303c96',
    950: '#000000',
  },
}
SCSS
$custom: #303c96;
$custom-light: #7571b6;
$custom-dark: #000000;
JSON
{
  "hex": "#303c96",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 150
  },
  "hsl": {
    "h": 232.941,
    "s": 51.515,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40292,
    "c": 0.14691,
    "h": 272.2
  },
  "luminance": 0.06062
}

Semantic roles & 50–950 ramp

primary
#303C96
secondary
#B9AF69
accent
#CA4DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #303C96

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

Preview Lab → · Contrast checker → · Palette generator →

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