#304FBD#304FBD

#304FBD is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.3% C 0.177 H 267.2°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#304FBD
RGBrgb(48, 79, 189)
HSLhsl(227, 59%, 46%)
HSVhsv(227, 75%, 74%)
CMYKcmyk(74.6%, 58.2%, 0%, 25.9%)
CIE-LABlab(37.65, 27.66, -61.13)
CIE-LCHlch(37.65, 67.09, 294.35°)
OKLaboklab(47.29% -0.0086 -0.1764)
OKLCHoklch(47.29% 0.177 267.2)
XYZxyz(13.1970, 9.8930, 49.3483)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FBD #BD9E30
analogous
#3096BD #304FBD #5830BD
triadic
#304FBD #BD304F #4FBD30
tetradic
#304FBD #BD3096 #BD9E30 #30BD58
square
#304FBD #BD3096 #BD9E30 #30BD58
split-complementary
#304FBD #BD5830 #96BD30
monochromatic
#17265B #243B8C #304FBD #5672D4 #879BE0

Accessibility & contrast

On white

7.05
#304FBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#304FBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304FBD
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FBD#FFFFFF#000000##FFFFFF
##304FBD1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC1
Deuteranopia (green-blind)
#0052BB
Tritanopia (blue-blind)
#006A7E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #304fbd;
/* rgb */ color: rgb(48, 79, 189);
/* oklch */ color: oklch(47.3% 0.177 267.2);
Tailwind
colors: {
  custom: {
    50: '#7d7fd2',
    500: '#304fbd',
    950: '#000000',
  },
}
SCSS
$custom: #304fbd;
$custom-light: #7d7fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#304fbd",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 189
  },
  "hsl": {
    "h": 226.809,
    "s": 59.494,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4729,
    "c": 0.17662,
    "h": 267.2
  },
  "luminance": 0.09894
}

Semantic roles & 50–950 ramp

primary
#304FBD
secondary
#CABA7F
accent
#C045E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #304FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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