#303C7D#303C7D

#303C7D is a dark, moderate blue. Relative luminance 0.053; OKLCH L 38.3% C 0.110 H 272.3°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#303C7D
RGBrgb(48, 60, 125)
HSLhsl(231, 45%, 34%)
HSVhsv(231, 62%, 49%)
CMYKcmyk(61.6%, 52%, 0%, 51%)
CIE-LABlab(27.68, 16.55, -38.53)
CIE-LCHlch(27.68, 41.94, 293.24°)
OKLaboklab(38.28% 0.0044 -0.1102)
OKLCHoklch(38.28% 0.11 272.3)
XYZxyz(6.5352, 5.3403, 20.0844)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303C7D #7D7130
analogous
#30637D #303C7D #4B307D
triadic
#303C7D #7D303C #3C7D30
tetradic
#303C7D #7D3063 #7D7130 #307D4B
square
#303C7D #7D3063 #7D7130 #307D4B
split-complementary
#303C7D #7D4B30 #637D30
monochromatic
#0E1225 #1F2751 #303C7D #4151A9 #6473C3

Accessibility & contrast

On white

10.15
#303C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#303C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303C7D
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303C7D#FFFFFF#000000##FFFFFF
##303C7D1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A457F
Deuteranopia (green-blind)
#0A3E7C
Tritanopia (blue-blind)
#004B56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #303c7d;
/* rgb */ color: rgb(48, 60, 125);
/* oklch */ color: oklch(38.3% 0.110 272.3);
Tailwind
colors: {
  custom: {
    50: '#7071a3',
    500: '#303c7d',
    950: '#000000',
  },
}
SCSS
$custom: #303c7d;
$custom-light: #7071a3;
$custom-dark: #000000;
JSON
{
  "hex": "#303c7d",
  "rgb": {
    "r": 48,
    "g": 60,
    "b": 125
  },
  "hsl": {
    "h": 230.649,
    "s": 44.509,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38283,
    "c": 0.11032,
    "h": 272.3
  },
  "luminance": 0.05341
}

Semantic roles & 50–950 ramp

primary
#303C7D
secondary
#AB9F5E
accent
#C054D4
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #303C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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