#304166#304166

#304166 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 37.9% C 0.067 H 264.6°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#304166
RGBrgb(48, 65, 102)
HSLhsl(221, 36%, 29%)
HSVhsv(221, 53%, 40%)
CMYKcmyk(52.9%, 36.3%, 0%, 60%)
CIE-LABlab(27.76, 4.86, -23.82)
CIE-LCHlch(27.76, 24.31, 281.53°)
OKLaboklab(37.88% -0.0063 -0.0671)
OKLCHoklch(37.88% 0.067 264.6)
XYZxyz(5.5067, 5.3679, 13.3137)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304166 #665530
analogous
#305C66 #304166 #3A3066
triadic
#304166 #663041 #416630
tetradic
#304166 #66305C #665530 #30663A
square
#304166 #66305C #665530 #30663A
split-complementary
#304166 #663A30 #5C6630
monochromatic
#0A0D15 #1C263C #304166 #445C90 #5D78B3

Accessibility & contrast

On white

10.13
#304166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#304166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304166
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304166#FFFFFF#000000##FFFFFF
##3041661.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334468
Deuteranopia (green-blind)
#2D3F65
Tritanopia (blue-blind)
#18494E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #304166;
/* rgb */ color: rgb(48, 65, 102);
/* oklch */ color: oklch(37.9% 0.067 264.6);
Tailwind
colors: {
  custom: {
    50: '#6c7592',
    500: '#304166',
    950: '#000000',
  },
}
SCSS
$custom: #304166;
$custom-light: #6c7592;
$custom-dark: #000000;
JSON
{
  "hex": "#304166",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 102
  },
  "hsl": {
    "h": 221.111,
    "s": 36,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37881,
    "c": 0.06739,
    "h": 264.6
  },
  "luminance": 0.05368
}

Semantic roles & 50–950 ramp

primary
#304166
secondary
#97845A
accent
#A95CCC
background
#F6F7F8
surface
#EBEDF0
border
#C6C8CB
text
#07080D
muted
#7A7B7D

Preview Lab

Preview with #304166

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

Preview Lab → · Contrast checker → · Palette generator →

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