#303DB4#303DB4

#303DB4 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.2% C 0.186 H 271.2°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#303DB4
RGBrgb(48, 61, 180)
HSLhsl(234, 58%, 45%)
HSVhsv(234, 73%, 71%)
CMYKcmyk(73.3%, 66.1%, 0%, 29.4%)
CIE-LABlab(32.39, 35.98, -64.41)
CIE-LCHlch(32.39, 73.78, 299.19°)
OKLaboklab(43.17% 0.0038 -0.1862)
OKLCHoklch(43.17% 0.186 271.2)
XYZxyz(11.1231, 7.2600, 43.9863)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303DB4 #B4A730
analogous
#307FB4 #303DB4 #6530B4
triadic
#303DB4 #B4303D #3DB430
tetradic
#303DB4 #B4307F #B4A730 #30B465
square
#303DB4 #B4307F #B4A730 #30B465
split-complementary
#303DB4 #B46530 #7FB430
monochromatic
#161C53 #232D84 #303DB4 #515DD1 #818ADD

Accessibility & contrast

On white

8.56
#303DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#303DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303DB4
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303DB4#FFFFFF#000000##FFFFFF
##303DB41.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #303db4;
/* rgb */ color: rgb(48, 61, 180);
/* oklch */ color: oklch(43.2% 0.186 271.2);
Tailwind
colors: {
  custom: {
    50: '#7c72cc',
    500: '#303db4',
    950: '#000000',
  },
}
SCSS
$custom: #303db4;
$custom-light: #7c72cc;
$custom-dark: #000000;
JSON
{
  "hex": "#303db4",
  "rgb": {
    "r": 48,
    "g": 61,
    "b": 180
  },
  "hsl": {
    "h": 234.091,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43169,
    "c": 0.18627,
    "h": 271.2
  },
  "luminance": 0.07261
}

Semantic roles & 50–950 ramp

primary
#303DB4
secondary
#C6BF79
accent
#D247E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #303DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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