#304F97#304F97

#304F97 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.4% C 0.123 H 264.4°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#304F97
RGBrgb(48, 79, 151)
HSLhsl(222, 52%, 39%)
HSVhsv(222, 68%, 59%)
CMYKcmyk(68.2%, 47.7%, 0%, 40.8%)
CIE-LABlab(34.91, 13.40, -42.94)
CIE-LCHlch(34.91, 44.98, 287.33°)
OKLaboklab(44.35% -0.012 -0.1229)
OKLCHoklch(44.35% 0.124 264.4)
XYZxyz(9.5989, 8.4538, 30.3980)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304F97 #977830
analogous
#308397 #304F97 #453097
triadic
#304F97 #97304F #4F9730
tetradic
#304F97 #973083 #977830 #309745
square
#304F97 #973083 #977830 #309745
split-complementary
#304F97 #974530 #839730
monochromatic
#121E3A #213769 #304F97 #4168C3 #708DD2

Accessibility & contrast

On white

7.80
#304F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#304F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304F97
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304F97#FFFFFF#000000##FFFFFF
##304F971.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A579A
Deuteranopia (green-blind)
#154E96
Tritanopia (blue-blind)
#00606B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #304f97;
/* rgb */ color: rgb(48, 79, 151);
/* oklch */ color: oklch(44.4% 0.123 264.4);
Tailwind
colors: {
  custom: {
    50: '#747fb6',
    500: '#304f97',
    950: '#000000',
  },
}
SCSS
$custom: #304f97;
$custom-light: #747fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#304f97",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 221.942,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4435,
    "c": 0.1235,
    "h": 264.4
  },
  "luminance": 0.08455
}

Semantic roles & 50–950 ramp

primary
#304F97
secondary
#B9A16A
accent
#B04DDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #304F97

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

Preview Lab → · Contrast checker → · Palette generator →

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