#303FB4#303FB4

#303FB4 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.5% C 0.184 H 270.8°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#303FB4
RGBrgb(48, 63, 180)
HSLhsl(233, 58%, 45%)
HSVhsv(233, 73%, 71%)
CMYKcmyk(73.3%, 65%, 0%, 29.4%)
CIE-LABlab(32.87, 34.71, -63.63)
CIE-LCHlch(32.87, 72.48, 298.62°)
OKLaboklab(43.52% 0.0025 -0.1839)
OKLCHoklch(43.52% 0.184 270.8)
XYZxyz(11.2318, 7.4775, 44.0225)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#303FB4 #B4A530
analogous
#3081B4 #303FB4 #6330B4
triadic
#303FB4 #B4303F #3FB430
tetradic
#303FB4 #B43081 #B4A530 #30B463
square
#303FB4 #B43081 #B4A530 #30B463
split-complementary
#303FB4 #B46330 #81B430
monochromatic
#161D53 #232E84 #303FB4 #515FD1 #818BDD

Accessibility & contrast

On white

8.41
#303FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #303FB4
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##303FB4#FFFFFF#000000##FFFFFF
##303FB41.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #303fb4;
/* rgb */ color: rgb(48, 63, 180);
/* oklch */ color: oklch(43.5% 0.184 270.8);
Tailwind
colors: {
  custom: {
    50: '#7c74cb',
    500: '#303fb4',
    950: '#000000',
  },
}
SCSS
$custom: #303fb4;
$custom-light: #7c74cb;
$custom-dark: #000000;
JSON
{
  "hex": "#303fb4",
  "rgb": {
    "r": 48,
    "g": 63,
    "b": 180
  },
  "hsl": {
    "h": 233.182,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43519,
    "c": 0.18395,
    "h": 270.8
  },
  "luminance": 0.07479
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #303FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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