#304CB0#304CB0

#304CB0 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.6% C 0.163 H 267.6°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#304CB0
RGBrgb(48, 76, 176)
HSLhsl(227, 57%, 44%)
HSVhsv(227, 73%, 69%)
CMYKcmyk(72.7%, 56.8%, 0%, 31%)
CIE-LABlab(35.85, 24.79, -56.39)
CIE-LCHlch(35.85, 61.60, 293.73°)
OKLaboklab(45.63% -0.0068 -0.1625)
OKLCHoklch(45.63% 0.163 267.6)
XYZxyz(11.6371, 8.9306, 42.1764)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CB0 #B09430
analogous
#308CB0 #304CB0 #5430B0
triadic
#304CB0 #B0304C #4CB030
tetradic
#304CB0 #B0308C #B09430 #30B054
square
#304CB0 #B0308C #B09430 #30B054
split-complementary
#304CB0 #B05430 #8CB030
monochromatic
#162250 #233780 #304CB0 #4E6ACF #7E93DC

Accessibility & contrast

On white

7.54
#304CB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#304CB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304CB0
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CB0#FFFFFF#000000##FFFFFF
##304CB01.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB3
Deuteranopia (green-blind)
#004FAE
Tritanopia (blue-blind)
#006576
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #304cb0;
/* rgb */ color: rgb(48, 76, 176);
/* oklch */ color: oklch(45.6% 0.163 267.6);
Tailwind
colors: {
  custom: {
    50: '#7a7dc8',
    500: '#304cb0',
    950: '#000000',
  },
}
SCSS
$custom: #304cb0;
$custom-light: #7a7dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#304cb0",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 176
  },
  "hsl": {
    "h": 226.875,
    "s": 57.143,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45626,
    "c": 0.16269,
    "h": 267.6
  },
  "luminance": 0.08932
}

Semantic roles & 50–950 ramp

primary
#304CB0
secondary
#C5B477
accent
#BF47E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #304CB0

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

Preview Lab → · Contrast checker → · Palette generator →

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