#304FAF#304FAF

#304FAF is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.2% C 0.158 H 266.6°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#304FAF
RGBrgb(48, 79, 175)
HSLhsl(225, 57%, 44%)
HSVhsv(225, 73%, 69%)
CMYKcmyk(72.6%, 54.9%, 0%, 31.4%)
CIE-LABlab(36.58, 22.43, -54.61)
CIE-LCHlch(36.58, 59.04, 292.33°)
OKLaboklab(46.15% -0.0093 -0.1573)
OKLCHoklch(46.15% 0.158 266.6)
XYZxyz(11.7501, 9.3143, 41.7277)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FAF #AF9030
analogous
#308EAF #304FAF #5030AF
triadic
#304FAF #AF304F #4FAF30
tetradic
#304FAF #AF308E #AF9030 #30AF50
square
#304FAF #AF308E #AF9030 #30AF50
split-complementary
#304FAF #AF5030 #8EAF30
monochromatic
#16244F #23397F #304FAF #4E6DCE #7E95DC

Accessibility & contrast

On white

7.33
#304FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#304FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304FAF
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FAF#FFFFFF#000000##FFFFFF
##304FAF1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#0050AD
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #304faf;
/* rgb */ color: rgb(48, 79, 175);
/* oklch */ color: oklch(46.2% 0.158 266.6);
Tailwind
colors: {
  custom: {
    50: '#797fc8',
    500: '#304faf',
    950: '#000000',
  },
}
SCSS
$custom: #304faf;
$custom-light: #797fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#304faf",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 175
  },
  "hsl": {
    "h": 225.354,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46153,
    "c": 0.15755,
    "h": 266.6
  },
  "luminance": 0.09315
}

Semantic roles & 50–950 ramp

primary
#304FAF
secondary
#C4B176
accent
#BB48E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #304FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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