#303C87#303C87

#303C87 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.1% C 0.125 H 272.4°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#303C87
RGBrgb(48, 60, 135)
HSLhsl(232, 48%, 36%)
HSVhsv(232, 64%, 53%)
CMYKcmyk(64.4%, 55.6%, 0%, 47.1%)
CIE-LABlab(28.40, 20.23, -43.61)
CIE-LCHlch(28.40, 48.08, 294.88°)
OKLaboklab(39.06% 0.0053 -0.1252)
OKLCHoklch(39.06% 0.125 272.4)
XYZxyz(7.2065, 5.6088, 23.6198)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303C87 #877B30
analogous
#306787 #303C87 #4F3087
triadic
#303C87 #87303C #3C8730
tetradic
#303C87 #873067 #877B30 #30874F
square
#303C87 #873067 #877B30 #30874F
split-complementary
#303C87 #874F30 #678730
monochromatic
#10142D #20285A #303C87 #4050B4 #6875C9

Accessibility & contrast

On white

9.90
#303C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#303C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303C87
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303C87#FFFFFF#000000##FFFFFF
##303C871.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08478A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#004E5B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #303c87;
/* rgb */ color: rgb(48, 60, 135);
/* oklch */ color: oklch(39.1% 0.125 272.4);
Tailwind
colors: {
  custom: {
    50: '#7271aa',
    500: '#303c87',
    950: '#000000',
  },
}
SCSS
$custom: #303c87;
$custom-light: #7271aa;
$custom-dark: #000000;
JSON
{
  "hex": "#303c87",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 135
  },
  "hsl": {
    "h": 231.724,
    "s": 47.541,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39056,
    "c": 0.12529,
    "h": 272.4
  },
  "luminance": 0.05609
}

Semantic roles & 50–950 ramp

primary
#303C87
secondary
#B1A662
accent
#C551D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #303C87

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

Preview Lab → · Contrast checker → · Palette generator →

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