#304F85#304F85

#304F85 is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.1% C 0.097 H 260.8°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#304F85
RGBrgb(48, 79, 133)
HSLhsl(218, 47%, 35%)
HSVhsv(218, 64%, 52%)
CMYKcmyk(63.9%, 40.6%, 0%, 47.8%)
CIE-LABlab(33.80, 6.70, -33.73)
CIE-LCHlch(33.80, 34.38, 281.23°)
OKLaboklab(43.14% -0.0156 -0.0959)
OKLCHoklch(43.14% 0.097 260.8)
XYZxyz(8.2471, 7.9131, 23.2785)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304F85 #856630
analogous
#307985 #304F85 #3C3085
triadic
#304F85 #85304F #4F8530
tetradic
#304F85 #853079 #856630 #30853C
square
#304F85 #853079 #856630 #30853C
split-complementary
#304F85 #853C30 #798530
monochromatic
#101A2B #203458 #304F85 #406AB2 #678BC8

Accessibility & contrast

On white

8.13
#304F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#304F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304F85
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304F85#FFFFFF#000000##FFFFFF
##304F851.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375487
Deuteranopia (green-blind)
#2C4C84
Tritanopia (blue-blind)
#005B63
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #304f85;
/* rgb */ color: rgb(48, 79, 133);
/* oklch */ color: oklch(43.1% 0.097 260.8);
Tailwind
colors: {
  custom: {
    50: '#7180a9',
    500: '#304f85',
    950: '#000000',
  },
}
SCSS
$custom: #304f85;
$custom-light: #7180a9;
$custom-dark: #000000;
JSON
{
  "hex": "#304f85",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 133
  },
  "hsl": {
    "h": 218.118,
    "s": 46.961,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43136,
    "c": 0.09711,
    "h": 260.8
  },
  "luminance": 0.07914
}

Semantic roles & 50–950 ramp

primary
#304F85
secondary
#AF9361
accent
#A651D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #304F85

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

Preview Lab → · Contrast checker → · Palette generator →

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