#304598#304598

#304598 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.3% C 0.138 H 269.0°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#304598
RGBrgb(48, 69, 152)
HSLhsl(228, 52%, 39%)
HSVhsv(228, 68%, 60%)
CMYKcmyk(68.4%, 54.6%, 0%, 40.4%)
CIE-LABlab(32.15, 20.47, -48.00)
CIE-LCHlch(32.15, 52.18, 293.10°)
OKLaboklab(42.27% -0.0023 -0.1379)
OKLCHoklch(42.27% 0.138 269)
XYZxyz(9.0126, 7.1508, 30.6049)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304598 #988330
analogous
#307998 #304598 #4F3098
triadic
#304598 #983045 #459830
tetradic
#304598 #983079 #988330 #30984F
square
#304598 #983079 #988330 #30984F
split-complementary
#304598 #984F30 #799830
monochromatic
#131B3B #213069 #304598 #425CC3 #7084D2

Accessibility & contrast

On white

8.64
#304598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#304598 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304598
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304598#FFFFFF#000000##FFFFFF
##3045981.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09519B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#005967
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #304598;
/* rgb */ color: rgb(48, 69, 152);
/* oklch */ color: oklch(42.3% 0.138 269.0);
Tailwind
colors: {
  custom: {
    50: '#7578b7',
    500: '#304598',
    950: '#000000',
  },
}
SCSS
$custom: #304598;
$custom-light: #7578b7;
$custom-dark: #000000;
JSON
{
  "hex": "#304598",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 152
  },
  "hsl": {
    "h": 227.885,
    "s": 52,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42272,
    "c": 0.13797,
    "h": 269
  },
  "luminance": 0.07152
}

Semantic roles & 50–950 ramp

primary
#304598
secondary
#BAAA6A
accent
#BF4CDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304598

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

Preview Lab → · Contrast checker → · Palette generator →

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