#304FB2#304FB2

#304FB2 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.4% C 0.162 H 266.8°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#304FB2
RGBrgb(48, 79, 178)
HSLhsl(226, 58%, 44%)
HSVhsv(226, 73%, 70%)
CMYKcmyk(73%, 55.6%, 0%, 30.2%)
CIE-LABlab(36.81, 23.56, -56.03)
CIE-LCHlch(36.81, 60.78, 292.80°)
OKLaboklab(46.39% -0.0091 -0.1614)
OKLCHoklch(46.39% 0.162 266.8)
XYZxyz(12.0480, 9.4334, 43.2967)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FB2 #B29330
analogous
#3090B2 #304FB2 #5230B2
triadic
#304FB2 #B2304F #4FB230
tetradic
#304FB2 #B23090 #B29330 #30B252
square
#304FB2 #B23090 #B29330 #30B252
split-complementary
#304FB2 #B25230 #90B230
monochromatic
#162452 #233A82 #304FB2 #506ED0 #8096DD

Accessibility & contrast

On white

7.27
#304FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#304FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304FB2
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FB2#FFFFFF#000000##FFFFFF
##304FB21.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB5
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#006778
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #304fb2;
/* rgb */ color: rgb(48, 79, 178);
/* oklch */ color: oklch(46.4% 0.162 266.8);
Tailwind
colors: {
  custom: {
    50: '#7a7fca',
    500: '#304fb2',
    950: '#000000',
  },
}
SCSS
$custom: #304fb2;
$custom-light: #7a7fca;
$custom-dark: #000000;
JSON
{
  "hex": "#304fb2",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 178
  },
  "hsl": {
    "h": 225.692,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46392,
    "c": 0.16168,
    "h": 266.8
  },
  "luminance": 0.09435
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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