#304FB1#304FB1

#304FB1 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.3% C 0.160 H 266.7°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#304FB1
RGBrgb(48, 79, 177)
HSLhsl(226, 57%, 44%)
HSVhsv(226, 73%, 69%)
CMYKcmyk(72.9%, 55.4%, 0%, 30.6%)
CIE-LABlab(36.73, 23.18, -55.56)
CIE-LCHlch(36.73, 60.20, 292.65°)
OKLaboklab(46.31% -0.0092 -0.16)
OKLCHoklch(46.31% 0.16 266.7)
XYZxyz(11.9480, 9.3934, 42.7699)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FB1 #B19230
analogous
#3090B1 #304FB1 #5130B1
triadic
#304FB1 #B1304F #4FB130
tetradic
#304FB1 #B13090 #B19230 #30B151
square
#304FB1 #B13090 #B19230 #30B151
split-complementary
#304FB1 #B15130 #90B130
monochromatic
#162451 #233A81 #304FB1 #4F6ECF #7F95DC

Accessibility & contrast

On white

7.29
#304FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#304FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304FB1
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FB1#FFFFFF#000000##FFFFFF
##304FB11.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB4
Deuteranopia (green-blind)
#0051AF
Tritanopia (blue-blind)
#006778
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #304fb1;
/* rgb */ color: rgb(48, 79, 177);
/* oklch */ color: oklch(46.3% 0.160 266.7);
Tailwind
colors: {
  custom: {
    50: '#7a7fc9',
    500: '#304fb1',
    950: '#000000',
  },
}
SCSS
$custom: #304fb1;
$custom-light: #7a7fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#304fb1",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 177
  },
  "hsl": {
    "h": 225.581,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.46312,
    "c": 0.1603,
    "h": 266.7
  },
  "luminance": 0.09395
}

Semantic roles & 50–950 ramp

primary
#304FB1
secondary
#C5B378
accent
#BC47E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #304FB1

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

Preview Lab → · Contrast checker → · Palette generator →

#304FB1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva