#303EB4#303EB4

#303EB4 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.3% C 0.185 H 271.0°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#303EB4
RGBrgb(48, 62, 180)
HSLhsl(234, 58%, 45%)
HSVhsv(234, 73%, 71%)
CMYKcmyk(73.3%, 65.6%, 0%, 29.4%)
CIE-LABlab(32.63, 35.35, -64.02)
CIE-LCHlch(32.63, 73.13, 298.91°)
OKLaboklab(43.34% 0.0031 -0.1851)
OKLCHoklch(43.34% 0.185 271)
XYZxyz(11.1770, 7.3678, 44.0042)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303EB4 #B4A630
analogous
#3080B4 #303EB4 #6430B4
triadic
#303EB4 #B4303E #3EB430
tetradic
#303EB4 #B43080 #B4A630 #30B464
square
#303EB4 #B43080 #B4A630 #30B464
split-complementary
#303EB4 #B46430 #80B430
monochromatic
#161D53 #232D84 #303EB4 #515ED1 #818BDD

Accessibility & contrast

On white

8.49
#303EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#303EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303EB4
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303EB4#FFFFFF#000000##FFFFFF
##303EB41.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0047B2
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #303eb4;
/* rgb */ color: rgb(48, 62, 180);
/* oklch */ color: oklch(43.3% 0.185 271.0);
Tailwind
colors: {
  custom: {
    50: '#7c73cb',
    500: '#303eb4',
    950: '#000000',
  },
}
SCSS
$custom: #303eb4;
$custom-light: #7c73cb;
$custom-dark: #000000;
JSON
{
  "hex": "#303eb4",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 180
  },
  "hsl": {
    "h": 233.636,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43343,
    "c": 0.18511,
    "h": 271
  },
  "luminance": 0.07369
}

Semantic roles & 50–950 ramp

primary
#303EB4
secondary
#C6BE79
accent
#D147E1
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #303EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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