#303E71#303E71

#303E71 is a dark, moderate blue. Relative luminance 0.053; OKLCH L 37.9% C 0.089 H 270.2°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#303E71
RGBrgb(48, 62, 113)
HSLhsl(227, 40%, 32%)
HSVhsv(227, 58%, 44%)
CMYKcmyk(57.5%, 45.1%, 0%, 55.7%)
CIE-LABlab(27.48, 10.80, -31.29)
CIE-LCHlch(27.48, 33.10, 289.05°)
OKLaboklab(37.87% 0.0003 -0.0889)
OKLCHoklch(37.87% 0.089 270.2)
XYZxyz(5.9212, 5.2655, 16.3239)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303E71 #716330
analogous
#305F71 #303E71 #433071
triadic
#303E71 #71303E #3E7130
tetradic
#303E71 #71305F #716330 #307143
square
#303E71 #71305F #716330 #307143
split-complementary
#303E71 #714330 #5F7130
monochromatic
#0C0F1B #1E2646 #303E71 #42569C #6074BB

Accessibility & contrast

On white

10.23
#303E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#303E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303E71
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303E71#FFFFFF#000000##FFFFFF
##303E711.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284473
Deuteranopia (green-blind)
#203E70
Tritanopia (blue-blind)
#0D4952
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #303e71;
/* rgb */ color: rgb(48, 62, 113);
/* oklch */ color: oklch(37.9% 0.089 270.2);
Tailwind
colors: {
  custom: {
    50: '#6e739a',
    500: '#303e71',
    950: '#000000',
  },
}
SCSS
$custom: #303e71;
$custom-light: #6e739a;
$custom-dark: #000000;
JSON
{
  "hex": "#303e71",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 113
  },
  "hsl": {
    "h": 227.077,
    "s": 40.373,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37872,
    "c": 0.08891,
    "h": 270.2
  },
  "luminance": 0.05266
}

Semantic roles & 50–950 ramp

primary
#303E71
secondary
#A2935B
accent
#B658D0
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #303E71

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

Preview Lab → · Contrast checker → · Palette generator →

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