#303E7D#303E7D

#303E7D is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.7% C 0.108 H 271.2°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#303E7D
RGBrgb(48, 62, 125)
HSLhsl(229, 45%, 34%)
HSVhsv(229, 62%, 49%)
CMYKcmyk(61.6%, 50.4%, 0%, 51%)
CIE-LABlab(28.26, 15.18, -37.61)
CIE-LCHlch(28.26, 40.56, 291.98°)
OKLaboklab(38.72% 0.0022 -0.1075)
OKLCHoklch(38.72% 0.108 271.2)
XYZxyz(6.6420, 5.5538, 20.1200)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303E7D #7D6F30
analogous
#30657D #303E7D #49307D
triadic
#303E7D #7D303E #3E7D30
tetradic
#303E7D #7D3065 #7D6F30 #307D49
square
#303E7D #7D3065 #7D6F30 #307D49
split-complementary
#303E7D #7D4930 #657D30
monochromatic
#0E1225 #1F2851 #303E7D #4154A9 #6475C3

Accessibility & contrast

On white

9.95
#303E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#303E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303E7D
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303E7D#FFFFFF#000000##FFFFFF
##303E7D1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E467F
Deuteranopia (green-blind)
#113F7C
Tritanopia (blue-blind)
#004C57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #303e7d;
/* rgb */ color: rgb(48, 62, 125);
/* oklch */ color: oklch(38.7% 0.108 271.2);
Tailwind
colors: {
  custom: {
    50: '#7073a3',
    500: '#303e7d',
    950: '#000000',
  },
}
SCSS
$custom: #303e7d;
$custom-light: #7073a3;
$custom-dark: #000000;
JSON
{
  "hex": "#303e7d",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 125
  },
  "hsl": {
    "h": 229.091,
    "s": 44.509,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38719,
    "c": 0.10751,
    "h": 271.2
  },
  "luminance": 0.05554
}

Semantic roles & 50–950 ramp

primary
#303E7D
secondary
#AB9D5E
accent
#BD54D4
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #303E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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