#304494#304494

#304494 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.8% C 0.134 H 269.3°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#304494
RGBrgb(48, 68, 148)
HSLhsl(228, 51%, 38%)
HSVhsv(228, 68%, 58%)
CMYKcmyk(67.6%, 54.1%, 0%, 42%)
CIE-LABlab(31.58, 19.65, -46.48)
CIE-LCHlch(31.58, 50.47, 292.91°)
OKLaboklab(41.75% -0.0017 -0.1335)
OKLCHoklch(41.75% 0.134 269.3)
XYZxyz(8.6295, 6.8999, 28.8883)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304494 #948030
analogous
#307694 #304494 #4E3094
triadic
#304494 #943044 #449430
tetradic
#304494 #943076 #948030 #30944E
square
#304494 #943076 #948030 #30944E
split-complementary
#304494 #944E30 #769430
monochromatic
#121A38 #212F66 #304494 #405AC1 #6E82D0

Accessibility & contrast

On white

8.82
#304494 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#304494 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304494
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304494#FFFFFF#000000##FFFFFF
##3044941.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4F97
Deuteranopia (green-blind)
#004692
Tritanopia (blue-blind)
#005765
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #304494;
/* rgb */ color: rgb(48, 68, 148);
/* oklch */ color: oklch(41.8% 0.134 269.3);
Tailwind
colors: {
  custom: {
    50: '#7477b4',
    500: '#304494',
    950: '#000000',
  },
}
SCSS
$custom: #304494;
$custom-light: #7477b4;
$custom-dark: #000000;
JSON
{
  "hex": "#304494",
  "rgb": {
    "r": 48,
    "g": 68,
    "b": 148
  },
  "hsl": {
    "h": 228,
    "s": 51.02,
    "l": 38.431
  },
  "oklch": {
    "l": 0.4175,
    "c": 0.13352,
    "h": 269.3
  },
  "luminance": 0.06901
}

Semantic roles & 50–950 ramp

primary
#304494
secondary
#B8A868
accent
#BE4DDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304494

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

Preview Lab → · Contrast checker → · Palette generator →

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