#304597#304597

#304597 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.2% C 0.137 H 269.0°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#304597
RGBrgb(48, 69, 151)
HSLhsl(228, 52%, 39%)
HSVhsv(228, 68%, 59%)
CMYKcmyk(68.2%, 54.3%, 0%, 40.8%)
CIE-LABlab(32.07, 20.10, -47.51)
CIE-LCHlch(32.07, 51.58, 292.93°)
OKLaboklab(42.19% -0.0024 -0.1365)
OKLCHoklch(42.19% 0.137 269)
XYZxyz(8.9311, 7.1181, 30.1754)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304597 #978230
analogous
#307997 #304597 #4F3097
triadic
#304597 #973045 #459730
tetradic
#304597 #973079 #978230 #30974F
square
#304597 #973079 #978230 #30974F
split-complementary
#304597 #974F30 #799730
monochromatic
#121B3A #213069 #304597 #415CC3 #7084D2

Accessibility & contrast

On white

8.66
#304597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#304597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304597
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304597#FFFFFF#000000##FFFFFF
##3045971.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C509A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#005967
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #304597;
/* rgb */ color: rgb(48, 69, 151);
/* oklch */ color: oklch(42.2% 0.137 269.0);
Tailwind
colors: {
  custom: {
    50: '#7578b6',
    500: '#304597',
    950: '#000000',
  },
}
SCSS
$custom: #304597;
$custom-light: #7578b6;
$custom-dark: #000000;
JSON
{
  "hex": "#304597",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 151
  },
  "hsl": {
    "h": 227.767,
    "s": 51.759,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42194,
    "c": 0.13653,
    "h": 269
  },
  "luminance": 0.07119
}

Semantic roles & 50–950 ramp

primary
#304597
secondary
#B9A96A
accent
#BE4DDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304597

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

Preview Lab → · Contrast checker → · Palette generator →

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