#303E8F#303E8F

#303E8F is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.1% C 0.134 H 271.6°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#303E8F
RGBrgb(48, 62, 143)
HSLhsl(231, 50%, 37%)
HSVhsv(231, 66%, 56%)
CMYKcmyk(66.4%, 56.6%, 0%, 43.9%)
CIE-LABlab(29.55, 21.83, -46.70)
CIE-LCHlch(29.55, 51.55, 295.06°)
OKLaboklab(40.11% 0.0037 -0.1342)
OKLCHoklch(40.11% 0.134 271.6)
XYZxyz(7.8978, 6.0561, 26.7340)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303E8F #8F8130
analogous
#306D8F #303E8F #52308F
triadic
#303E8F #8F303E #3E8F30
tetradic
#303E8F #8F306D #8F8130 #308F52
square
#303E8F #8F306D #8F8130 #308F52
split-complementary
#303E8F #8F5230 #6D8F30
monochromatic
#111633 #212A61 #303E8F #3F52BD #6C7ACE

Accessibility & contrast

On white

9.50
#303E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#303E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303E8F
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303E8F#FFFFFF#000000##FFFFFF
##303E8F1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#005160
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #303e8f;
/* rgb */ color: rgb(48, 62, 143);
/* oklch */ color: oklch(40.1% 0.134 271.6);
Tailwind
colors: {
  custom: {
    50: '#7473b0',
    500: '#303e8f',
    950: '#000000',
  },
}
SCSS
$custom: #303e8f;
$custom-light: #7473b0;
$custom-dark: #000000;
JSON
{
  "hex": "#303e8f",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 143
  },
  "hsl": {
    "h": 231.158,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40109,
    "c": 0.13427,
    "h": 271.6
  },
  "luminance": 0.06057
}

Semantic roles & 50–950 ramp

primary
#303E8F
secondary
#B5A966
accent
#C54FD9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090811
muted
#7B7B80

Preview Lab

Preview with #303E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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