#304A97#304A97

#304A97 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.3% C 0.130 H 266.9°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#304A97
RGBrgb(48, 74, 151)
HSLhsl(225, 52%, 39%)
HSVhsv(225, 68%, 59%)
CMYKcmyk(68.2%, 51%, 0%, 40.8%)
CIE-LABlab(33.48, 16.74, -45.24)
CIE-LCHlch(33.48, 48.24, 290.30°)
OKLaboklab(43.26% -0.0071 -0.1298)
OKLCHoklch(43.26% 0.13 266.9)
XYZxyz(9.2517, 7.7594, 30.2823)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304A97 #977D30
analogous
#307E97 #304A97 #4A3097
triadic
#304A97 #97304A #4A9730
tetradic
#304A97 #97307E #977D30 #30974A
square
#304A97 #97307E #977D30 #30974A
split-complementary
#304A97 #974A30 #7E9730
monochromatic
#121C3A #213369 #304A97 #4162C3 #7089D2

Accessibility & contrast

On white

8.23
#304A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#304A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304A97
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304A97#FFFFFF#000000##FFFFFF
##304A971.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E549A
Deuteranopia (green-blind)
#004A95
Tritanopia (blue-blind)
#005C69
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #304a97;
/* rgb */ color: rgb(48, 74, 151);
/* oklch */ color: oklch(43.3% 0.130 266.9);
Tailwind
colors: {
  custom: {
    50: '#747cb6',
    500: '#304a97',
    950: '#000000',
  },
}
SCSS
$custom: #304a97;
$custom-light: #747cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#304a97",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 151
  },
  "hsl": {
    "h": 224.854,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.43255,
    "c": 0.12998,
    "h": 266.9
  },
  "luminance": 0.0776
}

Semantic roles & 50–950 ramp

primary
#304A97
secondary
#B9A56A
accent
#B74DDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #304A97

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

Preview Lab → · Contrast checker → · Palette generator →

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