#303D71#303D71

#303D71 is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.6% C 0.090 H 271.0°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#303D71
RGBrgb(48, 61, 113)
HSLhsl(228, 40%, 32%)
HSVhsv(228, 58%, 44%)
CMYKcmyk(57.5%, 46%, 0%, 55.7%)
CIE-LABlab(27.18, 11.49, -31.76)
CIE-LCHlch(27.18, 33.78, 289.89°)
OKLaboklab(37.64% 0.0015 -0.0903)
OKLCHoklch(37.64% 0.09 271)
XYZxyz(5.8673, 5.1577, 16.3059)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303D71 #716430
analogous
#305E71 #303D71 #443071
triadic
#303D71 #71303D #3D7130
tetradic
#303D71 #71305E #716430 #307144
square
#303D71 #71305E #716430 #307144
split-complementary
#303D71 #714430 #5E7130
monochromatic
#0C0F1B #1E2646 #303D71 #42549C #6072BB

Accessibility & contrast

On white

10.34
#303D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#303D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303D71
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303D71#FFFFFF#000000##FFFFFF
##303D711.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264373
Deuteranopia (green-blind)
#1F3E70
Tritanopia (blue-blind)
#0D4851
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #303d71;
/* rgb */ color: rgb(48, 61, 113);
/* oklch */ color: oklch(37.6% 0.090 271.0);
Tailwind
colors: {
  custom: {
    50: '#6e729a',
    500: '#303d71',
    950: '#000000',
  },
}
SCSS
$custom: #303d71;
$custom-light: #6e729a;
$custom-dark: #000000;
JSON
{
  "hex": "#303d71",
  "rgb": {
    "r": 48,
    "g": 61,
    "b": 113
  },
  "hsl": {
    "h": 228,
    "s": 40.373,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37644,
    "c": 0.09033,
    "h": 271
  },
  "luminance": 0.05158
}

Semantic roles & 50–950 ramp

primary
#303D71
secondary
#A2945B
accent
#B858D0
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #303D71

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

Preview Lab → · Contrast checker → · Palette generator →

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