#303D8A#303D8A

#303D8A is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.5% C 0.128 H 272.0°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#303D8A
RGBrgb(48, 61, 138)
HSLhsl(231, 48%, 36%)
HSVhsv(231, 65%, 54%)
CMYKcmyk(65.2%, 55.8%, 0%, 45.9%)
CIE-LABlab(28.90, 20.66, -44.67)
CIE-LCHlch(28.90, 49.21, 294.82°)
OKLaboklab(39.5% 0.0045 -0.1283)
OKLCHoklch(39.5% 0.128 272)
XYZxyz(7.4736, 5.8002, 24.7655)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303D8A #8A7D30
analogous
#306A8A #303D8A #50308A
triadic
#303D8A #8A303D #3D8A30
tetradic
#303D8A #8A306A #8A7D30 #308A50
square
#303D8A #8A306A #8A7D30 #308A50
split-complementary
#303D8A #8A5030 #6A8A30
monochromatic
#10152F #20295D #303D8A #4051B7 #6978CB

Accessibility & contrast

On white

9.72
#303D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#303D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303D8A
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303D8A#FFFFFF#000000##FFFFFF
##303D8A1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05488D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #303d8a;
/* rgb */ color: rgb(48, 61, 138);
/* oklch */ color: oklch(39.5% 0.128 272.0);
Tailwind
colors: {
  custom: {
    50: '#7372ad',
    500: '#303d8a',
    950: '#000000',
  },
}
SCSS
$custom: #303d8a;
$custom-light: #7372ad;
$custom-dark: #000000;
JSON
{
  "hex": "#303d8a",
  "rgb": {
    "r": 48,
    "g": 61,
    "b": 138
  },
  "hsl": {
    "h": 231.333,
    "s": 48.387,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39502,
    "c": 0.12834,
    "h": 272
  },
  "luminance": 0.05801
}

Semantic roles & 50–950 ramp

primary
#303D8A
secondary
#B2A764
accent
#C450D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #303D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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