#304671#304671

#304671 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 39.8% C 0.078 H 262.8°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#304671
RGBrgb(48, 70, 113)
HSLhsl(220, 40%, 32%)
HSVhsv(220, 58%, 44%)
CMYKcmyk(57.5%, 38.1%, 0%, 55.7%)
CIE-LABlab(29.91, 5.40, -27.42)
CIE-LCHlch(29.91, 27.95, 281.13°)
OKLaboklab(39.75% -0.0098 -0.0775)
OKLCHoklch(39.75% 0.078 262.8)
XYZxyz(6.3887, 6.2005, 16.4797)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304671 #715B30
analogous
#306771 #304671 #3B3071
triadic
#304671 #713046 #467130
tetradic
#304671 #713067 #715B30 #30713B
square
#304671 #713067 #715B30 #30713B
split-complementary
#304671 #713B30 #677130
monochromatic
#0C111B #1E2B46 #304671 #42619C #607FBB

Accessibility & contrast

On white

9.37
#304671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304671
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304671#FFFFFF#000000##FFFFFF
##3046711.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354A73
Deuteranopia (green-blind)
#2D4470
Tritanopia (blue-blind)
#0A4F56
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #304671;
/* rgb */ color: rgb(48, 70, 113);
/* oklch */ color: oklch(39.8% 0.078 262.8);
Tailwind
colors: {
  custom: {
    50: '#6e799a',
    500: '#304671',
    950: '#000000',
  },
}
SCSS
$custom: #304671;
$custom-light: #6e799a;
$custom-dark: #000000;
JSON
{
  "hex": "#304671",
  "rgb": {
    "r": 48,
    "g": 70,
    "b": 113
  },
  "hsl": {
    "h": 219.692,
    "s": 40.373,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3975,
    "c": 0.07816,
    "h": 262.8
  },
  "luminance": 0.06201
}

Semantic roles & 50–950 ramp

primary
#304671
secondary
#A28A5B
accent
#A758D0
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #304671

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

Preview Lab → · Contrast checker → · Palette generator →

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