#303D8D#303D8D

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

Color values

HEX#303D8D
RGBrgb(48, 61, 141)
HSLhsl(232, 49%, 37%)
HSVhsv(232, 66%, 55%)
CMYKcmyk(66%, 56.7%, 0%, 44.7%)
CIE-LABlab(29.13, 21.77, -46.15)
CIE-LCHlch(29.13, 51.03, 295.25°)
OKLaboklab(39.74% 0.0046 -0.1326)
OKLCHoklch(39.74% 0.133 272)
XYZxyz(7.6938, 5.8883, 25.9252)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303D8D #8D8030
analogous
#306C8D #303D8D #52308D
triadic
#303D8D #8D303D #3D8D30
tetradic
#303D8D #8D306C #8D8030 #308D52
square
#303D8D #8D306C #8D8030 #308D52
split-complementary
#303D8D #8D5230 #6C8D30
monochromatic
#111532 #20295F #303D8D #4051BB #6B78CD

Accessibility & contrast

On white

9.64
#303D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303D8D
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303D8D#FFFFFF#000000##FFFFFF
##303D8D1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#00505F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #303d8d;
/* rgb */ color: rgb(48, 61, 141);
/* oklch */ color: oklch(39.7% 0.133 272.0);
Tailwind
colors: {
  custom: {
    50: '#7372af',
    500: '#303d8d',
    950: '#000000',
  },
}
SCSS
$custom: #303d8d;
$custom-light: #7372af;
$custom-dark: #000000;
JSON
{
  "hex": "#303d8d",
  "rgb": {
    "r": 48,
    "g": 61,
    "b": 141
  },
  "hsl": {
    "h": 231.613,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39743,
    "c": 0.13271,
    "h": 272
  },
  "luminance": 0.05889
}

Semantic roles & 50–950 ramp

primary
#303D8D
secondary
#B4A965
accent
#C64FD9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #303D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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