#303E8A#303E8A

#303E8A is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.7% C 0.127 H 271.6°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#303E8A
RGBrgb(48, 62, 138)
HSLhsl(231, 48%, 36%)
HSVhsv(231, 65%, 54%)
CMYKcmyk(65.2%, 55.1%, 0%, 45.9%)
CIE-LABlab(29.18, 19.98, -44.22)
CIE-LCHlch(29.18, 48.52, 294.32°)
OKLaboklab(39.71% 0.0035 -0.1269)
OKLCHoklch(39.71% 0.127 271.6)
XYZxyz(7.5275, 5.9080, 24.7835)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303E8A #8A7C30
analogous
#306B8A #303E8A #4F308A
triadic
#303E8A #8A303E #3E8A30
tetradic
#303E8A #8A306B #8A7C30 #308A4F
square
#303E8A #8A306B #8A7C30 #308A4F
split-complementary
#303E8A #8A4F30 #6B8A30
monochromatic
#10152F #202A5D #303E8A #4052B7 #6979CB

Accessibility & contrast

On white

9.63
#303E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#303E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303E8A
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303E8A#FFFFFF#000000##FFFFFF
##303E8A1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A498D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#00505D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #303e8a;
/* rgb */ color: rgb(48, 62, 138);
/* oklch */ color: oklch(39.7% 0.127 271.6);
Tailwind
colors: {
  custom: {
    50: '#7273ad',
    500: '#303e8a',
    950: '#000000',
  },
}
SCSS
$custom: #303e8a;
$custom-light: #7273ad;
$custom-dark: #000000;
JSON
{
  "hex": "#303e8a",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 138
  },
  "hsl": {
    "h": 230.667,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39709,
    "c": 0.12698,
    "h": 271.6
  },
  "luminance": 0.05909
}

Semantic roles & 50–950 ramp

primary
#303E8A
secondary
#B2A664
accent
#C350D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #303E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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