#304E97#304E97

#304E97 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.1% C 0.125 H 264.9°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#304E97
RGBrgb(48, 78, 151)
HSLhsl(223, 52%, 39%)
HSVhsv(223, 68%, 59%)
CMYKcmyk(68.2%, 48.3%, 0%, 40.8%)
CIE-LABlab(34.62, 14.07, -43.40)
CIE-LCHlch(34.62, 45.62, 287.96°)
OKLaboklab(44.13% -0.011 -0.1243)
OKLCHoklch(44.13% 0.125 264.9)
XYZxyz(9.5273, 8.3106, 30.3742)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304E97 #977930
analogous
#308297 #304E97 #463097
triadic
#304E97 #97304E #4E9730
tetradic
#304E97 #973082 #977930 #309746
square
#304E97 #973082 #977930 #309746
split-complementary
#304E97 #974630 #829730
monochromatic
#121E3A #213669 #304E97 #4167C3 #708CD2

Accessibility & contrast

On white

7.89
#304E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#304E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304E97
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304E97#FFFFFF#000000##FFFFFF
##304E971.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28569A
Deuteranopia (green-blind)
#124D95
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #304e97;
/* rgb */ color: rgb(48, 78, 151);
/* oklch */ color: oklch(44.1% 0.125 264.9);
Tailwind
colors: {
  custom: {
    50: '#747fb6',
    500: '#304e97',
    950: '#000000',
  },
}
SCSS
$custom: #304e97;
$custom-light: #747fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#304e97",
  "rgb": {
    "r": 48,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 222.524,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.44128,
    "c": 0.12478,
    "h": 264.9
  },
  "luminance": 0.08312
}

Semantic roles & 50–950 ramp

primary
#304E97
secondary
#B9A26A
accent
#B24DDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #304E97

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

Preview Lab → · Contrast checker → · Palette generator →

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