#303E7A#303E7A

#303E7A is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.5% C 0.103 H 271.0°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#303E7A
RGBrgb(48, 62, 122)
HSLhsl(229, 44%, 33%)
HSVhsv(229, 61%, 48%)
CMYKcmyk(60.7%, 49.2%, 0%, 52.2%)
CIE-LABlab(28.06, 14.08, -36.05)
CIE-LCHlch(28.06, 38.70, 291.33°)
OKLaboklab(38.5% 0.0018 -0.1029)
OKLCHoklch(38.5% 0.103 271)
XYZxyz(6.4532, 5.4783, 19.1259)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303E7A #7A6C30
analogous
#30637A #303E7A #47307A
triadic
#303E7A #7A303E #3E7A30
tetradic
#303E7A #7A3063 #7A6C30 #307A47
square
#303E7A #7A3063 #7A6C30 #307A47
split-complementary
#303E7A #7A4730 #637A30
monochromatic
#0D1122 #1F284E #303E7A #4154A6 #6375C2

Accessibility & contrast

On white

10.02
#303E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#303E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303E7A
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303E7A#FFFFFF#000000##FFFFFF
##303E7A1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21467C
Deuteranopia (green-blind)
#163F79
Tritanopia (blue-blind)
#004B56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #303e7a;
/* rgb */ color: rgb(48, 62, 122);
/* oklch */ color: oklch(38.5% 0.103 271.0);
Tailwind
colors: {
  custom: {
    50: '#6f73a1',
    500: '#303e7a',
    950: '#000000',
  },
}
SCSS
$custom: #303e7a;
$custom-light: #6f73a1;
$custom-dark: #000000;
JSON
{
  "hex": "#303e7a",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 122
  },
  "hsl": {
    "h": 228.649,
    "s": 43.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38501,
    "c": 0.10292,
    "h": 271
  },
  "luminance": 0.05479
}

Semantic roles & 50–950 ramp

primary
#303E7A
secondary
#A99A5D
accent
#BB55D3
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#08080F
muted
#7B7B7E

Preview Lab

Preview with #303E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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