#304F94#304F94

#304F94 is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.1% C 0.119 H 264.0°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#304F94
RGBrgb(48, 79, 148)
HSLhsl(221, 51%, 38%)
HSVhsv(221, 68%, 58%)
CMYKcmyk(67.6%, 46.6%, 0%, 42%)
CIE-LABlab(34.72, 12.27, -41.43)
CIE-LCHlch(34.72, 43.21, 286.50°)
OKLaboklab(44.14% -0.0125 -0.1185)
OKLCHoklch(44.14% 0.119 264)
XYZxyz(9.3583, 8.3576, 29.1312)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304F94 #947530
analogous
#308194 #304F94 #433094
triadic
#304F94 #94304F #4F9430
tetradic
#304F94 #943081 #947530 #309443
square
#304F94 #943081 #947530 #309443
split-complementary
#304F94 #944330 #819430
monochromatic
#121E38 #213666 #304F94 #4068C1 #6E8DD0

Accessibility & contrast

On white

7.86
#304F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#304F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304F94
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304F94#FFFFFF#000000##FFFFFF
##304F941.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5797
Deuteranopia (green-blind)
#1A4D93
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #304f94;
/* rgb */ color: rgb(48, 79, 148);
/* oklch */ color: oklch(44.1% 0.119 264.0);
Tailwind
colors: {
  custom: {
    50: '#747fb4',
    500: '#304f94',
    950: '#000000',
  },
}
SCSS
$custom: #304f94;
$custom-light: #747fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#304f94",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 148
  },
  "hsl": {
    "h": 221.4,
    "s": 51.02,
    "l": 38.431
  },
  "oklch": {
    "l": 0.44138,
    "c": 0.11914,
    "h": 264
  },
  "luminance": 0.08358
}

Semantic roles & 50–950 ramp

primary
#304F94
secondary
#B89F68
accent
#AF4DDA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #304F94

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

Preview Lab → · Contrast checker → · Palette generator →

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