#304497#304497

#304497 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.0% C 0.138 H 269.4°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#304497
RGBrgb(48, 68, 151)
HSLhsl(228, 52%, 39%)
HSVhsv(228, 68%, 59%)
CMYKcmyk(68.2%, 55%, 0%, 40.8%)
CIE-LABlab(31.80, 20.77, -47.95)
CIE-LCHlch(31.80, 52.26, 293.42°)
OKLaboklab(41.99% -0.0014 -0.1378)
OKLCHoklch(41.99% 0.138 269.4)
XYZxyz(8.8701, 6.9962, 30.1551)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304497 #978330
analogous
#307897 #304497 #503097
triadic
#304497 #973044 #449730
tetradic
#304497 #973078 #978330 #309750
square
#304497 #973078 #978330 #309750
split-complementary
#304497 #975030 #789730
monochromatic
#121A3A #212F69 #304497 #415BC3 #7083D2

Accessibility & contrast

On white

8.75
#304497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#304497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304497
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304497#FFFFFF#000000##FFFFFF
##3044971.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06509A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#005866
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #304497;
/* rgb */ color: rgb(48, 68, 151);
/* oklch */ color: oklch(42.0% 0.138 269.4);
Tailwind
colors: {
  custom: {
    50: '#7577b6',
    500: '#304497',
    950: '#000000',
  },
}
SCSS
$custom: #304497;
$custom-light: #7577b6;
$custom-dark: #000000;
JSON
{
  "hex": "#304497",
  "rgb": {
    "r": 48,
    "g": 68,
    "b": 151
  },
  "hsl": {
    "h": 228.35,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41985,
    "c": 0.13785,
    "h": 269.4
  },
  "luminance": 0.06997
}

Semantic roles & 50–950 ramp

primary
#304497
secondary
#B9AA6A
accent
#C04DDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304497

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

Preview Lab → · Contrast checker → · Palette generator →

#304497 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva