#304684#304684

#304684 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.0% C 0.107 H 267.0°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#304684
RGBrgb(48, 70, 132)
HSLhsl(224, 47%, 35%)
HSVhsv(224, 64%, 52%)
CMYKcmyk(63.6%, 47%, 0%, 48.2%)
CIE-LABlab(31.05, 12.33, -37.49)
CIE-LCHlch(31.05, 39.47, 288.21°)
OKLaboklab(41% -0.0057 -0.107)
OKLCHoklch(41% 0.107 267)
XYZxyz(7.5725, 6.6740, 22.7145)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304684 #846E30
analogous
#307084 #304684 #443084
triadic
#304684 #843046 #468430
tetradic
#304684 #843070 #846E30 #308444
square
#304684 #843070 #846E30 #308444
split-complementary
#304684 #844430 #708430
monochromatic
#0F162A #202E57 #304684 #405EB1 #6780C8

Accessibility & contrast

On white

8.99
#304684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#304684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304684
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304684#FFFFFF#000000##FFFFFF
##3046841.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294D86
Deuteranopia (green-blind)
#1B4683
Tritanopia (blue-blind)
#00545E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #304684;
/* rgb */ color: rgb(48, 70, 132);
/* oklch */ color: oklch(41.0% 0.107 267.0);
Tailwind
colors: {
  custom: {
    50: '#7179a8',
    500: '#304684',
    950: '#000000',
  },
}
SCSS
$custom: #304684;
$custom-light: #7179a8;
$custom-dark: #000000;
JSON
{
  "hex": "#304684",
  "rgb": {
    "r": 48,
    "g": 70,
    "b": 132
  },
  "hsl": {
    "h": 224.286,
    "s": 46.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40999,
    "c": 0.10718,
    "h": 267
  },
  "luminance": 0.06675
}

Semantic roles & 50–950 ramp

primary
#304684
secondary
#AF9A61
accent
#B451D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #304684

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

Preview Lab → · Contrast checker → · Palette generator →

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