#304EAF#304EAF

#304EAF is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.9% C 0.159 H 266.9°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#304EAF
RGBrgb(48, 78, 175)
HSLhsl(226, 57%, 44%)
HSVhsv(226, 73%, 69%)
CMYKcmyk(72.6%, 55.4%, 0%, 31.4%)
CIE-LABlab(36.31, 23.09, -55.05)
CIE-LCHlch(36.31, 59.70, 292.75°)
OKLaboklab(45.95% -0.0085 -0.1586)
OKLCHoklch(45.95% 0.159 266.9)
XYZxyz(11.6785, 9.1711, 41.7038)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304EAF #AF9130
analogous
#308DAF #304EAF #5130AF
triadic
#304EAF #AF304E #4EAF30
tetradic
#304EAF #AF308D #AF9130 #30AF51
square
#304EAF #AF308D #AF9130 #30AF51
split-complementary
#304EAF #AF5130 #8DAF30
monochromatic
#16234F #23397F #304EAF #4E6CCE #7E94DC

Accessibility & contrast

On white

7.41
#304EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#304EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304EAF
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304EAF#FFFFFF#000000##FFFFFF
##304EAF1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #304eaf;
/* rgb */ color: rgb(48, 78, 175);
/* oklch */ color: oklch(45.9% 0.159 266.9);
Tailwind
colors: {
  custom: {
    50: '#797fc8',
    500: '#304eaf',
    950: '#000000',
  },
}
SCSS
$custom: #304eaf;
$custom-light: #797fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#304eaf",
  "rgb": {
    "r": 48,
    "g": 78,
    "b": 175
  },
  "hsl": {
    "h": 225.827,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45949,
    "c": 0.1588,
    "h": 266.9
  },
  "luminance": 0.09172
}

Semantic roles & 50–950 ramp

primary
#304EAF
secondary
#C4B276
accent
#BC48E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #304EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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