#304AAF#304AAF

#304AAF is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.1% C 0.164 H 268.1°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#304AAF
RGBrgb(48, 74, 175)
HSLhsl(228, 57%, 44%)
HSVhsv(228, 73%, 69%)
CMYKcmyk(72.6%, 57.7%, 0%, 31.4%)
CIE-LABlab(35.24, 25.73, -56.79)
CIE-LCHlch(35.24, 62.35, 294.37°)
OKLaboklab(45.15% -0.0053 -0.1637)
OKLCHoklch(45.15% 0.164 268.1)
XYZxyz(11.4029, 8.6199, 41.6120)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304AAF #AF9530
analogous
#3089AF #304AAF #5530AF
triadic
#304AAF #AF304A #4AAF30
tetradic
#304AAF #AF3089 #AF9530 #30AF55
square
#304AAF #AF3089 #AF9530 #30AF55
split-complementary
#304AAF #AF5530 #89AF30
monochromatic
#16214F #23367F #304AAF #4E68CE #7E91DC

Accessibility & contrast

On white

7.71
#304AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#304AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304AAF
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304AAF#FFFFFF#000000##FFFFFF
##304AAF1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#006375
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #304aaf;
/* rgb */ color: rgb(48, 74, 175);
/* oklch */ color: oklch(45.1% 0.164 268.1);
Tailwind
colors: {
  custom: {
    50: '#7a7cc8',
    500: '#304aaf',
    950: '#000000',
  },
}
SCSS
$custom: #304aaf;
$custom-light: #7a7cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#304aaf",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 175
  },
  "hsl": {
    "h": 227.717,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45146,
    "c": 0.16383,
    "h": 268.1
  },
  "luminance": 0.08621
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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