#304994#304994

#304994 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.8% C 0.127 H 267.1°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#304994
RGBrgb(48, 73, 148)
HSLhsl(225, 51%, 38%)
HSVhsv(225, 68%, 58%)
CMYKcmyk(67.6%, 50.7%, 0%, 42%)
CIE-LABlab(32.99, 16.29, -44.21)
CIE-LCHlch(32.99, 47.12, 290.22°)
OKLaboklab(42.82% -0.0065 -0.1267)
OKLCHoklch(42.82% 0.127 267.1)
XYZxyz(8.9449, 7.5307, 28.9934)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304994 #947B30
analogous
#307B94 #304994 #493094
triadic
#304994 #943049 #499430
tetradic
#304994 #94307B #947B30 #309449
square
#304994 #94307B #947B30 #309449
split-complementary
#304994 #944930 #7B9430
monochromatic
#121B38 #213266 #304994 #4060C1 #6E87D0

Accessibility & contrast

On white

8.38
#304994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#304994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304994
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304994#FFFFFF#000000##FFFFFF
##3049941.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5297
Deuteranopia (green-blind)
#024992
Tritanopia (blue-blind)
#005A67
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #304994;
/* rgb */ color: rgb(48, 73, 148);
/* oklch */ color: oklch(42.8% 0.127 267.1);
Tailwind
colors: {
  custom: {
    50: '#747bb4',
    500: '#304994',
    950: '#000000',
  },
}
SCSS
$custom: #304994;
$custom-light: #747bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#304994",
  "rgb": {
    "r": 48,
    "g": 73,
    "b": 148
  },
  "hsl": {
    "h": 225,
    "s": 51.02,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42816,
    "c": 0.12692,
    "h": 267.1
  },
  "luminance": 0.07532
}

Semantic roles & 50–950 ramp

primary
#304994
secondary
#B8A468
accent
#B74DDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #304994

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

Preview Lab → · Contrast checker → · Palette generator →

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