#304188#304188

#304188 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 40.2% C 0.120 H 270.1°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#304188
RGBrgb(48, 65, 136)
HSLhsl(228, 48%, 36%)
HSVhsv(228, 65%, 53%)
CMYKcmyk(64.7%, 52.2%, 0%, 46.7%)
CIE-LABlab(29.88, 17.21, -41.86)
CIE-LCHlch(29.88, 45.25, 292.35°)
OKLaboklab(40.19% 0.0002 -0.1199)
OKLCHoklch(40.19% 0.12 270.1)
XYZxyz(7.5517, 6.1859, 24.0838)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304188 #887730
analogous
#306D88 #304188 #4B3088
triadic
#304188 #883041 #418830
tetradic
#304188 #88306D #887730 #30884B
square
#304188 #88306D #887730 #30884B
split-complementary
#304188 #884B30 #6D8830
monochromatic
#10162E #202B5B #304188 #4057B5 #697BCA

Accessibility & contrast

On white

9.39
#304188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#304188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304188
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304188#FFFFFF#000000##FFFFFF
##3041881.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194A8B
Deuteranopia (green-blind)
#014387
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #304188;
/* rgb */ color: rgb(48, 65, 136);
/* oklch */ color: oklch(40.2% 0.120 270.1);
Tailwind
colors: {
  custom: {
    50: '#7275ab',
    500: '#304188',
    950: '#000000',
  },
}
SCSS
$custom: #304188;
$custom-light: #7275ab;
$custom-dark: #000000;
JSON
{
  "hex": "#304188",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 136
  },
  "hsl": {
    "h": 228.409,
    "s": 47.826,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4019,
    "c": 0.11994,
    "h": 270.1
  },
  "luminance": 0.06187
}

Semantic roles & 50–950 ramp

primary
#304188
secondary
#B1A263
accent
#BD50D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #304188

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

Preview Lab → · Contrast checker → · Palette generator →

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