#304CA5#304CA5

#304CA5 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.7% C 0.147 H 267.1°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#304CA5
RGBrgb(48, 76, 165)
HSLhsl(226, 55%, 42%)
HSVhsv(226, 71%, 65%)
CMYKcmyk(70.9%, 53.9%, 0%, 35.3%)
CIE-LABlab(35.03, 20.66, -51.17)
CIE-LCHlch(35.03, 55.19, 291.99°)
OKLaboklab(44.75% -0.0075 -0.1472)
OKLCHoklch(44.75% 0.147 267.1)
XYZxyz(10.5925, 8.5128, 36.6749)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CA5 #A58930
analogous
#3087A5 #304CA5 #4F30A5
triadic
#304CA5 #A5304C #4CA530
tetradic
#304CA5 #A53087 #A58930 #30A54F
square
#304CA5 #A53087 #A58930 #30A54F
split-complementary
#304CA5 #A54F30 #87A530
monochromatic
#142046 #223676 #304CA5 #4867CA #788FD8

Accessibility & contrast

On white

7.77
#304CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#304CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304CA5
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CA5#FFFFFF#000000##FFFFFF
##304CA51.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B58A8
Deuteranopia (green-blind)
#004DA3
Tritanopia (blue-blind)
#006171
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #304ca5;
/* rgb */ color: rgb(48, 76, 165);
/* oklch */ color: oklch(44.7% 0.147 267.1);
Tailwind
colors: {
  custom: {
    50: '#777dc0',
    500: '#304ca5',
    950: '#000000',
  },
}
SCSS
$custom: #304ca5;
$custom-light: #777dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#304ca5",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 165
  },
  "hsl": {
    "h": 225.641,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44748,
    "c": 0.14739,
    "h": 267.1
  },
  "luminance": 0.08514
}

Semantic roles & 50–950 ramp

primary
#304CA5
secondary
#C0AD71
accent
#BB4ADE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #304CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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