#303C8D#303C8D

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

Color values

HEX#303C8D
RGBrgb(48, 60, 141)
HSLhsl(232, 49%, 37%)
HSVhsv(232, 66%, 55%)
CMYKcmyk(66%, 57.4%, 0%, 44.7%)
CIE-LABlab(28.86, 22.44, -46.59)
CIE-LCHlch(28.86, 51.72, 295.72°)
OKLaboklab(39.54% 0.0056 -0.1339)
OKLCHoklch(39.54% 0.134 272.4)
XYZxyz(7.6409, 5.7825, 25.9076)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303C8D #8D8130
analogous
#306B8D #303C8D #53308D
triadic
#303C8D #8D303C #3C8D30
tetradic
#303C8D #8D306B #8D8130 #308D53
square
#303C8D #8D306B #8D8130 #308D53
split-complementary
#303C8D #8D5330 #6B8D30
monochromatic
#111532 #20295F #303C8D #404FBB #6B77CD

Accessibility & contrast

On white

9.74
#303C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#303C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303C8D
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303C8D#FFFFFF#000000##FFFFFF
##303C8D1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #303c8d;
/* rgb */ color: rgb(48, 60, 141);
/* oklch */ color: oklch(39.5% 0.134 272.4);
Tailwind
colors: {
  custom: {
    50: '#7371af',
    500: '#303c8d',
    950: '#000000',
  },
}
SCSS
$custom: #303c8d;
$custom-light: #7371af;
$custom-dark: #000000;
JSON
{
  "hex": "#303c8d",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 141
  },
  "hsl": {
    "h": 232.258,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.3954,
    "c": 0.13406,
    "h": 272.4
  },
  "luminance": 0.05783
}

Semantic roles & 50–950 ramp

primary
#303C8D
secondary
#B4AA65
accent
#C74FD9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #303C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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