#303D7B#303D7B

#303D7B is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.4% C 0.106 H 271.7°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#303D7B
RGBrgb(48, 61, 123)
HSLhsl(230, 44%, 34%)
HSVhsv(230, 61%, 48%)
CMYKcmyk(61%, 50.4%, 0%, 51.8%)
CIE-LABlab(27.83, 15.13, -37.04)
CIE-LCHlch(27.83, 40.01, 292.22°)
OKLaboklab(38.35% 0.0031 -0.1058)
OKLCHoklch(38.35% 0.106 271.7)
XYZxyz(6.4616, 5.3954, 19.4360)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303D7B #7B6E30
analogous
#30627B #303D7B #48307B
triadic
#303D7B #7B303D #3D7B30
tetradic
#303D7B #7B3062 #7B6E30 #307B48
square
#303D7B #7B3062 #7B6E30 #307B48
split-complementary
#303D7B #7B4830 #627B30
monochromatic
#0E1123 #1F274F #303D7B #4153A7 #6374C2

Accessibility & contrast

On white

10.10
#303D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#303D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303D7B
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303D7B#FFFFFF#000000##FFFFFF
##303D7B1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E457D
Deuteranopia (green-blind)
#123F7A
Tritanopia (blue-blind)
#004B56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #303d7b;
/* rgb */ color: rgb(48, 61, 123);
/* oklch */ color: oklch(38.4% 0.106 271.7);
Tailwind
colors: {
  custom: {
    50: '#7072a2',
    500: '#303d7b',
    950: '#000000',
  },
}
SCSS
$custom: #303d7b;
$custom-light: #7072a2;
$custom-dark: #000000;
JSON
{
  "hex": "#303d7b",
  "rgb": {
    "r": 48,
    "g": 61,
    "b": 123
  },
  "hsl": {
    "h": 229.6,
    "s": 43.86,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38353,
    "c": 0.10586,
    "h": 271.7
  },
  "luminance": 0.05396
}

Semantic roles & 50–950 ramp

primary
#303D7B
secondary
#A99C5D
accent
#BE54D4
background
#F7F6FA
surface
#EDECF3
border
#C8C7CD
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #303D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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