#304594#304594

#304594 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.0% C 0.132 H 268.9°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#304594
RGBrgb(48, 69, 148)
HSLhsl(227, 51%, 38%)
HSVhsv(227, 68%, 58%)
CMYKcmyk(67.6%, 53.4%, 0%, 42%)
CIE-LABlab(31.86, 18.97, -46.03)
CIE-LCHlch(31.86, 49.79, 292.40°)
OKLaboklab(41.96% -0.0026 -0.1322)
OKLCHoklch(41.96% 0.132 268.9)
XYZxyz(8.6905, 7.0219, 28.9086)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304594 #947F30
analogous
#307794 #304594 #4D3094
triadic
#304594 #943045 #459430
tetradic
#304594 #943077 #947F30 #30944D
square
#304594 #943077 #947F30 #30944D
split-complementary
#304594 #944D30 #779430
monochromatic
#121A38 #212F66 #304594 #405BC1 #6E83D0

Accessibility & contrast

On white

8.73
#304594 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#304594 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304594
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304594#FFFFFF#000000##FFFFFF
##3045941.008.732.408.73
#FFFFFF8.731.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135097
Deuteranopia (green-blind)
#004792
Tritanopia (blue-blind)
#005865
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #304594;
/* rgb */ color: rgb(48, 69, 148);
/* oklch */ color: oklch(42.0% 0.132 268.9);
Tailwind
colors: {
  custom: {
    50: '#7478b4',
    500: '#304594',
    950: '#000000',
  },
}
SCSS
$custom: #304594;
$custom-light: #7478b4;
$custom-dark: #000000;
JSON
{
  "hex": "#304594",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 148
  },
  "hsl": {
    "h": 227.4,
    "s": 51.02,
    "l": 38.431
  },
  "oklch": {
    "l": 0.4196,
    "c": 0.1322,
    "h": 268.9
  },
  "luminance": 0.07023
}

Semantic roles & 50–950 ramp

primary
#304594
secondary
#B8A768
accent
#BD4DDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #304594

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

Preview Lab → · Contrast checker → · Palette generator →

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