#303C8A#303C8A

#303C8A is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.3% C 0.130 H 272.4°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#303C8A
RGBrgb(48, 60, 138)
HSLhsl(232, 48%, 36%)
HSVhsv(232, 65%, 54%)
CMYKcmyk(65.2%, 56.5%, 0%, 45.9%)
CIE-LABlab(28.63, 21.34, -45.11)
CIE-LCHlch(28.63, 49.90, 295.32°)
OKLaboklab(39.3% 0.0055 -0.1296)
OKLCHoklch(39.3% 0.13 272.4)
XYZxyz(7.4207, 5.6944, 24.7479)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303C8A #8A7E30
analogous
#30698A #303C8A #51308A
triadic
#303C8A #8A303C #3C8A30
tetradic
#303C8A #8A3069 #8A7E30 #308A51
square
#303C8A #8A3069 #8A7E30 #308A51
split-complementary
#303C8A #8A5130 #698A30
monochromatic
#10152F #20285D #303C8A #4050B7 #6976CB

Accessibility & contrast

On white

9.82
#303C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#303C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303C8A
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303C8A#FFFFFF#000000##FFFFFF
##303C8A1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #303c8a;
/* rgb */ color: rgb(48, 60, 138);
/* oklch */ color: oklch(39.3% 0.130 272.4);
Tailwind
colors: {
  custom: {
    50: '#7371ad',
    500: '#303c8a',
    950: '#000000',
  },
}
SCSS
$custom: #303c8a;
$custom-light: #7371ad;
$custom-dark: #000000;
JSON
{
  "hex": "#303c8a",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 138
  },
  "hsl": {
    "h": 232,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39296,
    "c": 0.12969,
    "h": 272.4
  },
  "luminance": 0.05695
}

Semantic roles & 50–950 ramp

primary
#303C8A
secondary
#B2A864
accent
#C650D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #303C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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