#304F8F#304F8F

#304F8F is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.8% C 0.112 H 263.1°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#304F8F
RGBrgb(48, 79, 143)
HSLhsl(220, 50%, 37%)
HSVhsv(220, 66%, 56%)
CMYKcmyk(66.4%, 44.8%, 0%, 43.9%)
CIE-LABlab(34.40, 10.40, -38.89)
CIE-LCHlch(34.40, 40.26, 284.98°)
OKLaboklab(43.79% -0.0134 -0.111)
OKLCHoklch(43.79% 0.112 263.1)
XYZxyz(8.9711, 8.2027, 27.0918)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304F8F #8F7030
analogous
#307F8F #304F8F #41308F
triadic
#304F8F #8F304F #4F8F30
tetradic
#304F8F #8F307F #8F7030 #308F41
square
#304F8F #8F307F #8F7030 #308F41
split-complementary
#304F8F #8F4130 #7F8F30
monochromatic
#111C33 #213661 #304F8F #3F68BD #6C8CCE

Accessibility & contrast

On white

7.95
#304F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#304F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304F8F
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304F8F#FFFFFF#000000##FFFFFF
##304F8F1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315691
Deuteranopia (green-blind)
#214D8E
Tritanopia (blue-blind)
#005E68
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #304f8f;
/* rgb */ color: rgb(48, 79, 143);
/* oklch */ color: oklch(43.8% 0.112 263.1);
Tailwind
colors: {
  custom: {
    50: '#737fb0',
    500: '#304f8f',
    950: '#000000',
  },
}
SCSS
$custom: #304f8f;
$custom-light: #737fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#304f8f",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 143
  },
  "hsl": {
    "h": 220.421,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.43794,
    "c": 0.11184,
    "h": 263.1
  },
  "luminance": 0.08204
}

Semantic roles & 50–950 ramp

primary
#304F8F
secondary
#B59B66
accent
#AC4FD9
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #304F8F

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

Preview Lab → · Contrast checker → · Palette generator →

#304F8F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva