#304BAF#304BAF

#304BAF is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.3% C 0.163 H 267.8°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#304BAF
RGBrgb(48, 75, 175)
HSLhsl(227, 57%, 44%)
HSVhsv(227, 73%, 69%)
CMYKcmyk(72.6%, 57.1%, 0%, 31.4%)
CIE-LABlab(35.51, 25.07, -56.36)
CIE-LCHlch(35.51, 61.68, 293.98°)
OKLaboklab(45.35% -0.0061 -0.1625)
OKLCHoklch(45.35% 0.163 267.8)
XYZxyz(11.4702, 8.7545, 41.6344)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304BAF #AF9430
analogous
#308AAF #304BAF #5430AF
triadic
#304BAF #AF304B #4BAF30
tetradic
#304BAF #AF308A #AF9430 #30AF54
square
#304BAF #AF308A #AF9430 #30AF54
split-complementary
#304BAF #AF5430 #8AAF30
monochromatic
#16224F #23367F #304BAF #4E69CE #7E92DC

Accessibility & contrast

On white

7.63
#304BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#304BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304BAF
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304BAF#FFFFFF#000000##FFFFFF
##304BAF1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#006475
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #304baf;
/* rgb */ color: rgb(48, 75, 175);
/* oklch */ color: oklch(45.3% 0.163 267.8);
Tailwind
colors: {
  custom: {
    50: '#7a7cc8',
    500: '#304baf',
    950: '#000000',
  },
}
SCSS
$custom: #304baf;
$custom-light: #7a7cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#304baf",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 175
  },
  "hsl": {
    "h": 227.244,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45345,
    "c": 0.16257,
    "h": 267.8
  },
  "luminance": 0.08756
}

Semantic roles & 50–950 ramp

primary
#304BAF
secondary
#C4B476
accent
#C048E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #304BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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