#303C8B#303C8B

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

Color values

HEX#303C8B
RGBrgb(48, 60, 139)
HSLhsl(232, 49%, 37%)
HSVhsv(232, 65%, 55%)
CMYKcmyk(65.5%, 56.8%, 0%, 45.5%)
CIE-LABlab(28.70, 21.71, -45.61)
CIE-LCHlch(28.70, 50.51, 295.45°)
OKLaboklab(39.38% 0.0055 -0.131)
OKLCHoklch(39.38% 0.131 272.4)
XYZxyz(7.4934, 5.7235, 25.1310)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303C8B #8B7F30
analogous
#306A8B #303C8B #52308B
triadic
#303C8B #8B303C #3C8B30
tetradic
#303C8B #8B306A #8B7F30 #308B52
square
#303C8B #8B306A #8B7F30 #308B52
split-complementary
#303C8B #8B5230 #6A8B30
monochromatic
#111530 #20285E #303C8B #4050B8 #6A77CC

Accessibility & contrast

On white

9.79
#303C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303C8B
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303C8B#FFFFFF#000000##FFFFFF
##303C8B1.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #303c8b;
/* rgb */ color: rgb(48, 60, 139);
/* oklch */ color: oklch(39.4% 0.131 272.4);
Tailwind
colors: {
  custom: {
    50: '#7371ad',
    500: '#303c8b',
    950: '#000000',
  },
}
SCSS
$custom: #303c8b;
$custom-light: #7371ad;
$custom-dark: #000000;
JSON
{
  "hex": "#303c8b",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 139
  },
  "hsl": {
    "h": 232.088,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39377,
    "c": 0.13116,
    "h": 272.4
  },
  "luminance": 0.05724
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #303C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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