#303FB5#303FB5

#303FB5 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.6% C 0.185 H 270.7°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#303FB5
RGBrgb(48, 63, 181)
HSLhsl(233, 58%, 45%)
HSVhsv(233, 73%, 71%)
CMYKcmyk(73.5%, 65.2%, 0%, 29%)
CIE-LABlab(32.96, 35.07, -64.08)
CIE-LCHlch(32.96, 73.05, 298.70°)
OKLaboklab(43.61% 0.0024 -0.1852)
OKLCHoklch(43.61% 0.185 270.7)
XYZxyz(11.3341, 7.5184, 44.5610)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303FB5 #B5A630
analogous
#3082B5 #303FB5 #6330B5
triadic
#303FB5 #B5303F #3FB530
tetradic
#303FB5 #B53082 #B5A630 #30B563
square
#303FB5 #B53082 #B5A630 #30B563
split-complementary
#303FB5 #B56330 #82B530
monochromatic
#161D54 #232E85 #303FB5 #5160D1 #828CDE

Accessibility & contrast

On white

8.39
#303FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#303FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #303FB5
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303FB5#FFFFFF#000000##FFFFFF
##303FB51.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #303fb5;
/* rgb */ color: rgb(48, 63, 181);
/* oklch */ color: oklch(43.6% 0.185 270.7);
Tailwind
colors: {
  custom: {
    50: '#7c74cc',
    500: '#303fb5',
    950: '#000000',
  },
}
SCSS
$custom: #303fb5;
$custom-light: #7c74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#303fb5",
  "rgb": {
    "r": 48,
    "g": 63,
    "b": 181
  },
  "hsl": {
    "h": 233.233,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43611,
    "c": 0.18525,
    "h": 270.7
  },
  "luminance": 0.0752
}

Semantic roles & 50–950 ramp

primary
#303FB5
secondary
#C7BE7A
accent
#D046E1
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #303FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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