#303C88#303C88

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

Color values

HEX#303C88
RGBrgb(48, 60, 136)
HSLhsl(232, 48%, 36%)
HSVhsv(232, 65%, 53%)
CMYKcmyk(64.7%, 55.9%, 0%, 46.7%)
CIE-LABlab(28.48, 20.60, -44.11)
CIE-LCHlch(28.48, 48.69, 295.03°)
OKLaboklab(39.14% 0.0054 -0.1267)
OKLCHoklch(39.14% 0.127 272.4)
XYZxyz(7.2772, 5.6371, 23.9923)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303C88 #887C30
analogous
#306888 #303C88 #503088
triadic
#303C88 #88303C #3C8830
tetradic
#303C88 #883068 #887C30 #308850
square
#303C88 #883068 #887C30 #308850
split-complementary
#303C88 #885030 #688830
monochromatic
#10142E #20285B #303C88 #4050B5 #6976CA

Accessibility & contrast

On white

9.87
#303C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#303C88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303C88
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303C88#FFFFFF#000000##FFFFFF
##303C881.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05478B
Deuteranopia (green-blind)
#003F86
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #303c88;
/* rgb */ color: rgb(48, 60, 136);
/* oklch */ color: oklch(39.1% 0.127 272.4);
Tailwind
colors: {
  custom: {
    50: '#7271ab',
    500: '#303c88',
    950: '#000000',
  },
}
SCSS
$custom: #303c88;
$custom-light: #7271ab;
$custom-dark: #000000;
JSON
{
  "hex": "#303c88",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 136
  },
  "hsl": {
    "h": 231.818,
    "s": 47.826,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39135,
    "c": 0.12676,
    "h": 272.4
  },
  "luminance": 0.05638
}

Semantic roles & 50–950 ramp

primary
#303C88
secondary
#B1A663
accent
#C550D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #303C88

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

Preview Lab → · Contrast checker → · Palette generator →

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