#303E8B#303E8B

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

Color values

HEX#303E8B
RGBrgb(48, 62, 139)
HSLhsl(231, 49%, 37%)
HSVhsv(231, 65%, 55%)
CMYKcmyk(65.5%, 55.4%, 0%, 45.5%)
CIE-LABlab(29.25, 20.35, -44.72)
CIE-LCHlch(29.25, 49.13, 294.47°)
OKLaboklab(39.79% 0.0035 -0.1284)
OKLCHoklch(39.79% 0.128 271.6)
XYZxyz(7.6002, 5.9370, 25.1665)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303E8B #8B7D30
analogous
#306C8B #303E8B #50308B
triadic
#303E8B #8B303E #3E8B30
tetradic
#303E8B #8B306C #8B7D30 #308B50
square
#303E8B #8B306C #8B7D30 #308B50
split-complementary
#303E8B #8B5030 #6C8B30
monochromatic
#111530 #202A5E #303E8B #4052B8 #6A79CC

Accessibility & contrast

On white

9.60
#303E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#303E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303E8B
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303E8B#FFFFFF#000000##FFFFFF
##303E8B1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08498E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#00505E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #303e8b;
/* rgb */ color: rgb(48, 62, 139);
/* oklch */ color: oklch(39.8% 0.128 271.6);
Tailwind
colors: {
  custom: {
    50: '#7373ad',
    500: '#303e8b',
    950: '#000000',
  },
}
SCSS
$custom: #303e8b;
$custom-light: #7373ad;
$custom-dark: #000000;
JSON
{
  "hex": "#303e8b",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 139
  },
  "hsl": {
    "h": 230.769,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39789,
    "c": 0.12845,
    "h": 271.6
  },
  "luminance": 0.05938
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #303E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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