#304589#304589

#304589 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 41.1% C 0.116 H 268.1°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#304589
RGBrgb(48, 69, 137)
HSLhsl(226, 48%, 36%)
HSVhsv(226, 65%, 54%)
CMYKcmyk(65%, 49.6%, 0%, 46.3%)
CIE-LABlab(31.09, 14.87, -40.52)
CIE-LCHlch(31.09, 43.16, 290.15°)
OKLaboklab(41.13% -0.0039 -0.1159)
OKLCHoklch(41.13% 0.116 268.1)
XYZxyz(7.8609, 6.6901, 24.5391)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304589 #897430
analogous
#307289 #304589 #483089
triadic
#304589 #893045 #458930
tetradic
#304589 #893072 #897430 #308948
square
#304589 #893072 #897430 #308948
split-complementary
#304589 #894830 #728930
monochromatic
#10172E #202E5C #304589 #405CB6 #6980CA

Accessibility & contrast

On white

8.98
#304589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304589
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304589#FFFFFF#000000##FFFFFF
##3045891.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224D8B
Deuteranopia (green-blind)
#104588
Tritanopia (blue-blind)
#005560
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #304589;
/* rgb */ color: rgb(48, 69, 137);
/* oklch */ color: oklch(41.1% 0.116 268.1);
Tailwind
colors: {
  custom: {
    50: '#7278ac',
    500: '#304589',
    950: '#000000',
  },
}
SCSS
$custom: #304589;
$custom-light: #7278ac;
$custom-dark: #000000;
JSON
{
  "hex": "#304589",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 137
  },
  "hsl": {
    "h": 225.843,
    "s": 48.108,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41134,
    "c": 0.11601,
    "h": 268.1
  },
  "luminance": 0.06691
}

Semantic roles & 50–950 ramp

primary
#304589
secondary
#B29F63
accent
#B850D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #304589

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

Preview Lab → · Contrast checker → · Palette generator →

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