#304699#304699

#304699 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.6% C 0.138 H 268.7°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#304699
RGBrgb(48, 70, 153)
HSLhsl(227, 52%, 39%)
HSVhsv(227, 69%, 60%)
CMYKcmyk(68.6%, 54.2%, 0%, 40%)
CIE-LABlab(32.50, 20.17, -48.04)
CIE-LCHlch(32.50, 52.10, 292.78°)
OKLaboklab(42.56% -0.0031 -0.1381)
OKLCHoklch(42.56% 0.138 268.7)
XYZxyz(9.1569, 7.3077, 31.0588)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304699 #998330
analogous
#307B99 #304699 #4F3099
triadic
#304699 #993046 #469930
tetradic
#304699 #99307B #998330 #30994F
square
#304699 #99307B #998330 #30994F
split-complementary
#304699 #994F30 #7B9930
monochromatic
#131B3C #21316A #304699 #425DC4 #7185D2

Accessibility & contrast

On white

8.53
#304699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#304699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304699
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304699#FFFFFF#000000##FFFFFF
##3046991.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C519C
Deuteranopia (green-blind)
#004897
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #304699;
/* rgb */ color: rgb(48, 70, 153);
/* oklch */ color: oklch(42.6% 0.138 268.7);
Tailwind
colors: {
  custom: {
    50: '#7579b8',
    500: '#304699',
    950: '#000000',
  },
}
SCSS
$custom: #304699;
$custom-light: #7579b8;
$custom-dark: #000000;
JSON
{
  "hex": "#304699",
  "rgb": {
    "r": 48,
    "g": 70,
    "b": 153
  },
  "hsl": {
    "h": 227.429,
    "s": 52.239,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42559,
    "c": 0.1381,
    "h": 268.7
  },
  "luminance": 0.07309
}

Semantic roles & 50–950 ramp

primary
#304699
secondary
#BAA96B
accent
#BE4CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #304699

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

Preview Lab → · Contrast checker → · Palette generator →

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