#304DA5#304DA5

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

Color values

HEX#304DA5
RGBrgb(48, 77, 165)
HSLhsl(225, 55%, 42%)
HSVhsv(225, 71%, 65%)
CMYKcmyk(70.9%, 53.3%, 0%, 35.3%)
CIE-LABlab(35.30, 20.00, -50.73)
CIE-LCHlch(35.30, 54.53, 291.52°)
OKLaboklab(44.96% -0.0084 -0.1459)
OKLCHoklch(44.96% 0.146 266.7)
XYZxyz(10.6620, 8.6517, 36.6981)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304DA5 #A58830
analogous
#3088A5 #304DA5 #4D30A5
triadic
#304DA5 #A5304D #4DA530
tetradic
#304DA5 #A53088 #A58830 #30A54D
square
#304DA5 #A53088 #A58830 #30A54D
split-complementary
#304DA5 #A54D30 #88A530
monochromatic
#142146 #223776 #304DA5 #4868CA #7890D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##304DA5#FFFFFF#000000##FFFFFF
##304DA51.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)
#1159A8
Deuteranopia (green-blind)
#004EA3
Tritanopia (blue-blind)
#006271
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #304da5;
/* rgb */ color: rgb(48, 77, 165);
/* oklch */ color: oklch(45.0% 0.146 266.7);
Tailwind
colors: {
  custom: {
    50: '#777ec0',
    500: '#304da5',
    950: '#000000',
  },
}
SCSS
$custom: #304da5;
$custom-light: #777ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#304da5",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 165
  },
  "hsl": {
    "h": 225.128,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44957,
    "c": 0.14611,
    "h": 266.7
  },
  "luminance": 0.08653
}

Semantic roles & 50–950 ramp

primary
#304DA5
secondary
#C0AC71
accent
#B94ADE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #304DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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