#304CAF#304CAF

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

Color values

HEX#304CAF
RGBrgb(48, 76, 175)
HSLhsl(227, 57%, 44%)
HSVhsv(227, 73%, 69%)
CMYKcmyk(72.6%, 56.6%, 0%, 31.4%)
CIE-LABlab(35.77, 24.41, -55.93)
CIE-LCHlch(35.77, 61.02, 293.58°)
OKLaboklab(45.55% -0.0069 -0.1612)
OKLCHoklch(45.55% 0.161 267.6)
XYZxyz(11.5385, 8.8912, 41.6572)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CAF #AF9330
analogous
#308BAF #304CAF #5330AF
triadic
#304CAF #AF304C #4CAF30
tetradic
#304CAF #AF308B #AF9330 #30AF53
square
#304CAF #AF308B #AF9330 #30AF53
split-complementary
#304CAF #AF5330 #8BAF30
monochromatic
#16224F #23377F #304CAF #4E6ACE #7E92DC

Accessibility & contrast

On white

7.56
#304CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#304CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304CAF
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CAF#FFFFFF#000000##FFFFFF
##304CAF1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#004FAD
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #304caf;
/* rgb */ color: rgb(48, 76, 175);
/* oklch */ color: oklch(45.5% 0.161 267.6);
Tailwind
colors: {
  custom: {
    50: '#7a7dc8',
    500: '#304caf',
    950: '#000000',
  },
}
SCSS
$custom: #304caf;
$custom-light: #7a7dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#304caf",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 175
  },
  "hsl": {
    "h": 226.772,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45545,
    "c": 0.16132,
    "h": 267.6
  },
  "luminance": 0.08892
}

Semantic roles & 50–950 ramp

primary
#304CAF
secondary
#C4B376
accent
#BF48E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #304CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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