#303C8F#303C8F

#303C8F is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.7% C 0.137 H 272.4°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#303C8F
RGBrgb(48, 60, 143)
HSLhsl(232, 50%, 37%)
HSVhsv(232, 66%, 56%)
CMYKcmyk(66.4%, 58%, 0%, 43.9%)
CIE-LABlab(29.01, 23.18, -47.57)
CIE-LCHlch(29.01, 52.92, 295.98°)
OKLaboklab(39.7% 0.0056 -0.1368)
OKLCHoklch(39.7% 0.137 272.4)
XYZxyz(7.7910, 5.8426, 26.6984)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303C8F #8F8330
analogous
#306C8F #303C8F #54308F
triadic
#303C8F #8F303C #3C8F30
tetradic
#303C8F #8F306C #8F8330 #308F54
square
#303C8F #8F306C #8F8330 #308F54
split-complementary
#303C8F #8F5430 #6C8F30
monochromatic
#111633 #212961 #303C8F #3F4FBD #6C78CE

Accessibility & contrast

On white

9.68
#303C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#303C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303C8F
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303C8F#FFFFFF#000000##FFFFFF
##303C8F1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#00505F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #303c8f;
/* rgb */ color: rgb(48, 60, 143);
/* oklch */ color: oklch(39.7% 0.137 272.4);
Tailwind
colors: {
  custom: {
    50: '#7471b0',
    500: '#303c8f',
    950: '#000000',
  },
}
SCSS
$custom: #303c8f;
$custom-light: #7471b0;
$custom-dark: #000000;
JSON
{
  "hex": "#303c8f",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 143
  },
  "hsl": {
    "h": 232.421,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39704,
    "c": 0.13695,
    "h": 272.4
  },
  "luminance": 0.05843
}

Semantic roles & 50–950 ramp

primary
#303C8F
secondary
#B5AB66
accent
#C84FD9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #303C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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