#304AA5#304AA5

#304AA5 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.3% C 0.150 H 267.8°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#304AA5
RGBrgb(48, 74, 165)
HSLhsl(227, 55%, 42%)
HSVhsv(227, 71%, 65%)
CMYKcmyk(70.9%, 55.2%, 0%, 35.3%)
CIE-LABlab(34.48, 21.99, -52.06)
CIE-LCHlch(34.48, 56.52, 292.90°)
OKLaboklab(44.34% -0.0058 -0.1498)
OKLCHoklch(44.34% 0.15 267.8)
XYZxyz(10.4569, 8.2415, 36.6297)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304AA5 #A58B30
analogous
#3085A5 #304AA5 #5130A5
triadic
#304AA5 #A5304A #4AA530
tetradic
#304AA5 #A53085 #A58B30 #30A551
square
#304AA5 #A53085 #A58B30 #30A551
split-complementary
#304AA5 #A55130 #85A530
monochromatic
#141F46 #223576 #304AA5 #4865CA #788DD8

Accessibility & contrast

On white

7.93
#304AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#304AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304AA5
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304AA5#FFFFFF#000000##FFFFFF
##304AA51.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057A8
Deuteranopia (green-blind)
#004CA3
Tritanopia (blue-blind)
#006070
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #304aa5;
/* rgb */ color: rgb(48, 74, 165);
/* oklch */ color: oklch(44.3% 0.150 267.8);
Tailwind
colors: {
  custom: {
    50: '#777cc0',
    500: '#304aa5',
    950: '#000000',
  },
}
SCSS
$custom: #304aa5;
$custom-light: #777cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#304aa5",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 165
  },
  "hsl": {
    "h": 226.667,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44335,
    "c": 0.14995,
    "h": 267.8
  },
  "luminance": 0.08243
}

Semantic roles & 50–950 ramp

primary
#304AA5
secondary
#C0AE71
accent
#BD4ADE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #304AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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