#304A91#304A91

#304A91 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 42.8% C 0.121 H 266.3°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#304A91
RGBrgb(48, 74, 145)
HSLhsl(224, 50%, 38%)
HSVhsv(224, 67%, 57%)
CMYKcmyk(66.9%, 49%, 0%, 43.1%)
CIE-LABlab(33.07, 14.49, -42.25)
CIE-LCHlch(33.07, 44.66, 288.93°)
OKLaboklab(42.82% -0.0079 -0.121)
OKLCHoklch(42.82% 0.121 266.3)
XYZxyz(8.7768, 7.5695, 27.7811)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304A91 #917730
analogous
#307A91 #304A91 #473091
triadic
#304A91 #91304A #4A9130
tetradic
#304A91 #91307A #917730 #309147
square
#304A91 #91307A #917730 #309147
split-complementary
#304A91 #914730 #7A9130
monochromatic
#121B35 #213363 #304A91 #3F61BF #6D87CF

Accessibility & contrast

On white

8.35
#304A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#304A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304A91
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304A91#FFFFFF#000000##FFFFFF
##304A911.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255294
Deuteranopia (green-blind)
#104A90
Tritanopia (blue-blind)
#005A66
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #304a91;
/* rgb */ color: rgb(48, 74, 145);
/* oklch */ color: oklch(42.8% 0.121 266.3);
Tailwind
colors: {
  custom: {
    50: '#737cb2',
    500: '#304a91',
    950: '#000000',
  },
}
SCSS
$custom: #304a91;
$custom-light: #737cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#304a91",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 145
  },
  "hsl": {
    "h": 223.918,
    "s": 50.259,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42815,
    "c": 0.12122,
    "h": 266.3
  },
  "luminance": 0.0757
}

Semantic roles & 50–950 ramp

primary
#304A91
secondary
#B6A167
accent
#B44EDA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #304A91

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

Preview Lab → · Contrast checker → · Palette generator →

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