#304178#304178

#304178 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.0% C 0.096 H 268.8°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#304178
RGBrgb(48, 65, 120)
HSLhsl(226, 43%, 33%)
HSVhsv(226, 60%, 47%)
CMYKcmyk(60%, 45.8%, 0%, 52.9%)
CIE-LABlab(28.81, 11.30, -33.59)
CIE-LCHlch(28.81, 35.44, 288.60°)
OKLaboklab(39.03% -0.0021 -0.0956)
OKLCHoklch(39.03% 0.096 268.8)
XYZxyz(6.4983, 5.7645, 18.5359)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304178 #786730
analogous
#306578 #304178 #433078
triadic
#304178 #783041 #417830
tetradic
#304178 #783065 #786730 #307843
square
#304178 #783065 #786730 #307843
split-complementary
#304178 #784330 #657830
monochromatic
#0D1221 #1F294C #304178 #4159A4 #6278C0

Accessibility & contrast

On white

9.75
#304178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#304178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304178
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304178#FFFFFF#000000##FFFFFF
##3041781.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28477A
Deuteranopia (green-blind)
#1F4177
Tritanopia (blue-blind)
#004D56
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #304178;
/* rgb */ color: rgb(48, 65, 120);
/* oklch */ color: oklch(39.0% 0.096 268.8);
Tailwind
colors: {
  custom: {
    50: '#6f759f',
    500: '#304178',
    950: '#000000',
  },
}
SCSS
$custom: #304178;
$custom-light: #6f759f;
$custom-dark: #000000;
JSON
{
  "hex": "#304178",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 120
  },
  "hsl": {
    "h": 225.833,
    "s": 42.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39035,
    "c": 0.09565,
    "h": 268.8
  },
  "luminance": 0.05765
}

Semantic roles & 50–950 ramp

primary
#304178
secondary
#A7965C
accent
#B555D3
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08080E
muted
#7B7B7E

Preview Lab

Preview with #304178

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

Preview Lab → · Contrast checker → · Palette generator →

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