#304186#304186

#304186 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 40.0% C 0.117 H 270.0°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#304186
RGBrgb(48, 65, 134)
HSLhsl(228, 47%, 36%)
HSVhsv(228, 64%, 53%)
CMYKcmyk(64.2%, 51.5%, 0%, 47.5%)
CIE-LABlab(29.74, 16.46, -40.84)
CIE-LCHlch(29.74, 44.03, 291.95°)
OKLaboklab(40.04% 0 -0.117)
OKLCHoklch(40.04% 0.117 270)
XYZxyz(7.4108, 6.1296, 23.3422)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304186 #867530
analogous
#306C86 #304186 #4A3086
triadic
#304186 #863041 #418630
tetradic
#304186 #86306C #867530 #30864A
square
#304186 #86306C #867530 #30864A
split-complementary
#304186 #864A30 #6C8630
monochromatic
#10152C #202B59 #304186 #4057B3 #687BC9

Accessibility & contrast

On white

9.43
#304186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#304186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304186
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304186#FFFFFF#000000##FFFFFF
##3041861.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4A88
Deuteranopia (green-blind)
#074285
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #304186;
/* rgb */ color: rgb(48, 65, 134);
/* oklch */ color: oklch(40.0% 0.117 270.0);
Tailwind
colors: {
  custom: {
    50: '#7175aa',
    500: '#304186',
    950: '#000000',
  },
}
SCSS
$custom: #304186;
$custom-light: #7175aa;
$custom-dark: #000000;
JSON
{
  "hex": "#304186",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 134
  },
  "hsl": {
    "h": 228.14,
    "s": 47.253,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40039,
    "c": 0.11696,
    "h": 270
  },
  "luminance": 0.0613
}

Semantic roles & 50–950 ramp

primary
#304186
secondary
#B0A162
accent
#BC51D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #304186

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

Preview Lab → · Contrast checker → · Palette generator →

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