#303DA5#303DA5

#303DA5 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.8% C 0.166 H 271.6°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#303DA5
RGBrgb(48, 61, 165)
HSLhsl(233, 55%, 42%)
HSVhsv(233, 71%, 65%)
CMYKcmyk(70.9%, 63%, 0%, 35.3%)
CIE-LABlab(31.07, 30.58, -57.61)
CIE-LCHlch(31.07, 65.23, 297.96°)
OKLaboklab(41.79% 0.0046 -0.1663)
OKLCHoklch(41.79% 0.166 271.6)
XYZxyz(9.6769, 6.6815, 36.3697)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303DA5 #A59830
analogous
#3078A5 #303DA5 #5D30A5
triadic
#303DA5 #A5303D #3DA530
tetradic
#303DA5 #A53078 #A59830 #30A55D
square
#303DA5 #A53078 #A59830 #30A55D
split-complementary
#303DA5 #A55D30 #78A530
monochromatic
#141A46 #222B76 #303DA5 #4857CA #7882D8

Accessibility & contrast

On white

8.99
#303DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#303DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303DA5
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303DA5#FFFFFF#000000##FFFFFF
##303DA51.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #303da5;
/* rgb */ color: rgb(48, 61, 165);
/* oklch */ color: oklch(41.8% 0.166 271.6);
Tailwind
colors: {
  custom: {
    50: '#7872c1',
    500: '#303da5',
    950: '#000000',
  },
}
SCSS
$custom: #303da5;
$custom-light: #7872c1;
$custom-dark: #000000;
JSON
{
  "hex": "#303da5",
  "rgb": {
    "r": 48,
    "g": 61,
    "b": 165
  },
  "hsl": {
    "h": 233.333,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41793,
    "c": 0.16636,
    "h": 271.6
  },
  "luminance": 0.06682
}

Semantic roles & 50–950 ramp

primary
#303DA5
secondary
#C0B771
accent
#CE4ADE
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #303DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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