#304F9D#304F9D

#304F9D is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.8% C 0.132 H 265.2°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#304F9D
RGBrgb(48, 79, 157)
HSLhsl(223, 53%, 40%)
HSVhsv(223, 69%, 62%)
CMYKcmyk(69.4%, 49.7%, 0%, 38.4%)
CIE-LABlab(35.31, 15.66, -45.92)
CIE-LCHlch(35.31, 48.52, 288.83°)
OKLaboklab(44.78% -0.0111 -0.1317)
OKLCHoklch(44.78% 0.132 265.2)
XYZxyz(10.0986, 8.6537, 33.0299)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304F9D #9D7E30
analogous
#30859D #304F9D #48309D
triadic
#304F9D #9D304F #4F9D30
tetradic
#304F9D #9D3085 #9D7E30 #309D48
square
#304F9D #9D3085 #9D7E30 #309D48
split-complementary
#304F9D #9D4830 #859D30
monochromatic
#13203F #22376E #304F9D #4469C6 #738FD4

Accessibility & contrast

On white

7.69
#304F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#304F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304F9D
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304F9D#FFFFFF#000000##FFFFFF
##304F9D1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2458A0
Deuteranopia (green-blind)
#044E9B
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #304f9d;
/* rgb */ color: rgb(48, 79, 157);
/* oklch */ color: oklch(44.8% 0.132 265.2);
Tailwind
colors: {
  custom: {
    50: '#757fba',
    500: '#304f9d',
    950: '#000000',
  },
}
SCSS
$custom: #304f9d;
$custom-light: #757fba;
$custom-dark: #000000;
JSON
{
  "hex": "#304f9d",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 157
  },
  "hsl": {
    "h": 222.936,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44782,
    "c": 0.13216,
    "h": 265.2
  },
  "luminance": 0.08655
}

Semantic roles & 50–950 ramp

primary
#304F9D
secondary
#BCA66D
accent
#B34BDD
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #304F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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