#304F95#304F95

#304F95 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.2% C 0.121 H 264.1°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#304F95
RGBrgb(48, 79, 149)
HSLhsl(222, 51%, 39%)
HSVhsv(222, 68%, 58%)
CMYKcmyk(67.8%, 47%, 0%, 41.6%)
CIE-LABlab(34.78, 12.65, -41.93)
CIE-LCHlch(34.78, 43.80, 286.79°)
OKLaboklab(44.21% -0.0123 -0.12)
OKLCHoklch(44.21% 0.121 264.1)
XYZxyz(9.4378, 8.3894, 29.5499)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304F95 #957630
analogous
#308195 #304F95 #433095
triadic
#304F95 #95304F #4F9530
tetradic
#304F95 #953081 #957630 #309543
square
#304F95 #953081 #957630 #309543
split-complementary
#304F95 #954330 #819530
monochromatic
#121E38 #213667 #304F95 #4168C2 #6F8DD1

Accessibility & contrast

On white

7.84
#304F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#304F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304F95
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304F95#FFFFFF#000000##FFFFFF
##304F951.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5798
Deuteranopia (green-blind)
#194D94
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #304f95;
/* rgb */ color: rgb(48, 79, 149);
/* oklch */ color: oklch(44.2% 0.121 264.1);
Tailwind
colors: {
  custom: {
    50: '#747fb5',
    500: '#304f95',
    950: '#000000',
  },
}
SCSS
$custom: #304f95;
$custom-light: #747fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#304f95",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 149
  },
  "hsl": {
    "h": 221.584,
    "s": 51.269,
    "l": 38.627
  },
  "oklch": {
    "l": 0.44208,
    "c": 0.12059,
    "h": 264.1
  },
  "luminance": 0.0839
}

Semantic roles & 50–950 ramp

primary
#304F95
secondary
#B8A069
accent
#AF4DDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #304F95

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

Preview Lab → · Contrast checker → · Palette generator →

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