#304388#304388

#304388 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.6% C 0.117 H 269.1°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#304388
RGBrgb(48, 67, 136)
HSLhsl(227, 48%, 36%)
HSVhsv(227, 65%, 53%)
CMYKcmyk(64.7%, 50.7%, 0%, 46.7%)
CIE-LABlab(30.45, 15.85, -40.94)
CIE-LCHlch(30.45, 43.90, 291.16°)
OKLaboklab(40.62% -0.0019 -0.1172)
OKLCHoklch(40.62% 0.117 269.1)
XYZxyz(7.6685, 6.4196, 24.1228)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304388 #887530
analogous
#306F88 #304388 #493088
triadic
#304388 #883043 #438830
tetradic
#304388 #88306F #887530 #308849
square
#304388 #88306F #887530 #308849
split-complementary
#304388 #884930 #6F8830
monochromatic
#10162E #202D5B #304388 #4059B5 #697ECA

Accessibility & contrast

On white

9.19
#304388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#304388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304388
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304388#FFFFFF#000000##FFFFFF
##3043881.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4C8B
Deuteranopia (green-blind)
#0A4487
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #304388;
/* rgb */ color: rgb(48, 67, 136);
/* oklch */ color: oklch(40.6% 0.117 269.1);
Tailwind
colors: {
  custom: {
    50: '#7276ab',
    500: '#304388',
    950: '#000000',
  },
}
SCSS
$custom: #304388;
$custom-light: #7276ab;
$custom-dark: #000000;
JSON
{
  "hex": "#304388",
  "rgb": {
    "r": 48,
    "g": 67,
    "b": 136
  },
  "hsl": {
    "h": 227.045,
    "s": 47.826,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40623,
    "c": 0.11723,
    "h": 269.1
  },
  "luminance": 0.0642
}

Semantic roles & 50–950 ramp

primary
#304388
secondary
#B1A063
accent
#BA50D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #304388

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

Preview Lab → · Contrast checker → · Palette generator →

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