#304599#304599

#304599 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.4% C 0.139 H 269.1°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#304599
RGBrgb(48, 69, 153)
HSLhsl(228, 52%, 39%)
HSVhsv(228, 69%, 60%)
CMYKcmyk(68.6%, 54.9%, 0%, 40%)
CIE-LABlab(32.22, 20.84, -48.49)
CIE-LCHlch(32.22, 52.78, 293.26°)
OKLaboklab(42.35% -0.0022 -0.1394)
OKLCHoklch(42.35% 0.139 269.1)
XYZxyz(9.0948, 7.1837, 31.0381)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304599 #998430
analogous
#307A99 #304599 #503099
triadic
#304599 #993045 #459930
tetradic
#304599 #99307A #998430 #309950
square
#304599 #99307A #998430 #309950
split-complementary
#304599 #995030 #7A9930
monochromatic
#131B3C #21306A #304599 #425CC4 #7184D2

Accessibility & contrast

On white

8.62
#304599 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#304599 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304599
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304599#FFFFFF#000000##FFFFFF
##3045991.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06519C
Deuteranopia (green-blind)
#004797
Tritanopia (blue-blind)
#005968
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #304599;
/* rgb */ color: rgb(48, 69, 153);
/* oklch */ color: oklch(42.4% 0.139 269.1);
Tailwind
colors: {
  custom: {
    50: '#7578b8',
    500: '#304599',
    950: '#000000',
  },
}
SCSS
$custom: #304599;
$custom-light: #7578b8;
$custom-dark: #000000;
JSON
{
  "hex": "#304599",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 153
  },
  "hsl": {
    "h": 228,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42351,
    "c": 0.13941,
    "h": 269.1
  },
  "luminance": 0.07185
}

Semantic roles & 50–950 ramp

primary
#304599
secondary
#BAAA6B
accent
#BF4CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304599

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

Preview Lab → · Contrast checker → · Palette generator →

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