#303EB5#303EB5

#303EB5 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.4% C 0.186 H 270.9°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#303EB5
RGBrgb(48, 62, 181)
HSLhsl(234, 58%, 45%)
HSVhsv(234, 73%, 71%)
CMYKcmyk(73.5%, 65.7%, 0%, 29%)
CIE-LABlab(32.72, 35.71, -64.47)
CIE-LCHlch(32.72, 73.70, 298.98°)
OKLaboklab(43.44% 0.0031 -0.1864)
OKLCHoklch(43.44% 0.186 270.9)
XYZxyz(11.2792, 7.4087, 44.5427)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303EB5 #B5A730
analogous
#3081B5 #303EB5 #6430B5
triadic
#303EB5 #B5303E #3EB530
tetradic
#303EB5 #B53081 #B5A730 #30B564
square
#303EB5 #B53081 #B5A730 #30B564
split-complementary
#303EB5 #B56430 #81B530
monochromatic
#161D54 #232D85 #303EB5 #515FD1 #828BDE

Accessibility & contrast

On white

8.46
#303EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#303EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303EB5
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303EB5#FFFFFF#000000##FFFFFF
##303EB51.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #303eb5;
/* rgb */ color: rgb(48, 62, 181);
/* oklch */ color: oklch(43.4% 0.186 270.9);
Tailwind
colors: {
  custom: {
    50: '#7c73cc',
    500: '#303eb5',
    950: '#000000',
  },
}
SCSS
$custom: #303eb5;
$custom-light: #7c73cc;
$custom-dark: #000000;
JSON
{
  "hex": "#303eb5",
  "rgb": {
    "r": 48,
    "g": 62,
    "b": 181
  },
  "hsl": {
    "h": 233.684,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43436,
    "c": 0.18642,
    "h": 270.9
  },
  "luminance": 0.0741
}

Semantic roles & 50–950 ramp

primary
#303EB5
secondary
#C7BF7A
accent
#D146E1
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #303EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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