#304DB2#304DB2

#304DB2 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.0% C 0.164 H 267.4°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#304DB2
RGBrgb(48, 77, 178)
HSLhsl(227, 58%, 44%)
HSVhsv(227, 73%, 70%)
CMYKcmyk(73%, 56.7%, 0%, 30.2%)
CIE-LABlab(36.27, 24.87, -56.90)
CIE-LCHlch(36.27, 62.10, 293.61°)
OKLaboklab(45.99% -0.0075 -0.164)
OKLCHoklch(45.99% 0.164 267.4)
XYZxyz(11.9059, 9.1492, 43.2494)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304DB2 #B29530
analogous
#308EB2 #304DB2 #5430B2
triadic
#304DB2 #B2304D #4DB230
tetradic
#304DB2 #B2308E #B29530 #30B254
square
#304DB2 #B2308E #B29530 #30B254
split-complementary
#304DB2 #B25430 #8EB230
monochromatic
#162352 #233882 #304DB2 #506CD0 #8094DD

Accessibility & contrast

On white

7.42
#304DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#304DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304DB2
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304DB2#FFFFFF#000000##FFFFFF
##304DB21.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #304db2;
/* rgb */ color: rgb(48, 77, 178);
/* oklch */ color: oklch(46.0% 0.164 267.4);
Tailwind
colors: {
  custom: {
    50: '#7a7eca',
    500: '#304db2',
    950: '#000000',
  },
}
SCSS
$custom: #304db2;
$custom-light: #7a7eca;
$custom-dark: #000000;
JSON
{
  "hex": "#304db2",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 178
  },
  "hsl": {
    "h": 226.615,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45989,
    "c": 0.16418,
    "h": 267.4
  },
  "luminance": 0.0915
}

Semantic roles & 50–950 ramp

primary
#304DB2
secondary
#C6B478
accent
#BE47E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #304DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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