#304189#304189

#304189 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.3% C 0.121 H 270.2°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#304189
RGBrgb(48, 65, 137)
HSLhsl(229, 48%, 36%)
HSVhsv(229, 65%, 54%)
CMYKcmyk(65%, 52.6%, 0%, 46.3%)
CIE-LABlab(29.95, 17.58, -42.36)
CIE-LCHlch(29.95, 45.86, 292.54°)
OKLaboklab(40.27% 0.0003 -0.1214)
OKLCHoklch(40.27% 0.121 270.2)
XYZxyz(7.6231, 6.2145, 24.4598)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304189 #897830
analogous
#306E89 #304189 #4C3089
triadic
#304189 #893041 #418930
tetradic
#304189 #89306E #897830 #30894C
square
#304189 #89306E #897830 #30894C
split-complementary
#304189 #894C30 #6E8930
monochromatic
#10162E #202B5C #304189 #4057B6 #697CCA

Accessibility & contrast

On white

9.36
#304189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304189
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304189#FFFFFF#000000##FFFFFF
##3041891.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184B8C
Deuteranopia (green-blind)
#004388
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #304189;
/* rgb */ color: rgb(48, 65, 137);
/* oklch */ color: oklch(40.3% 0.121 270.2);
Tailwind
colors: {
  custom: {
    50: '#7275ac',
    500: '#304189',
    950: '#000000',
  },
}
SCSS
$custom: #304189;
$custom-light: #7275ac;
$custom-dark: #000000;
JSON
{
  "hex": "#304189",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 137
  },
  "hsl": {
    "h": 228.539,
    "s": 48.108,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40266,
    "c": 0.12142,
    "h": 270.2
  },
  "luminance": 0.06215
}

Semantic roles & 50–950 ramp

primary
#304189
secondary
#B2A363
accent
#BE50D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #304189

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

Preview Lab → · Contrast checker → · Palette generator →

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