#304CA7#304CA7

#304CA7 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.9% C 0.150 H 267.2°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#304CA7
RGBrgb(48, 76, 167)
HSLhsl(226, 55%, 42%)
HSVhsv(226, 71%, 65%)
CMYKcmyk(71.3%, 54.5%, 0%, 34.5%)
CIE-LABlab(35.18, 21.41, -52.13)
CIE-LCHlch(35.18, 56.36, 292.33°)
OKLaboklab(44.91% -0.0074 -0.15)
OKLCHoklch(44.91% 0.15 267.2)
XYZxyz(10.7760, 8.5862, 37.6411)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CA7 #A78B30
analogous
#3088A7 #304CA7 #4F30A7
triadic
#304CA7 #A7304C #4CA730
tetradic
#304CA7 #A73088 #A78B30 #30A74F
square
#304CA7 #A73088 #A78B30 #30A74F
split-complementary
#304CA7 #A74F30 #88A730
monochromatic
#152148 #223677 #304CA7 #4968CB #798FD8

Accessibility & contrast

On white

7.73
#304CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#304CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304CA7
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CA7#FFFFFF#000000##FFFFFF
##304CA71.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0558AA
Deuteranopia (green-blind)
#004EA5
Tritanopia (blue-blind)
#006272
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #304ca7;
/* rgb */ color: rgb(48, 76, 167);
/* oklch */ color: oklch(44.9% 0.150 267.2);
Tailwind
colors: {
  custom: {
    50: '#787dc2',
    500: '#304ca7',
    950: '#000000',
  },
}
SCSS
$custom: #304ca7;
$custom-light: #787dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#304ca7",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 167
  },
  "hsl": {
    "h": 225.882,
    "s": 55.349,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44905,
    "c": 0.1502,
    "h": 267.2
  },
  "luminance": 0.08587
}

Semantic roles & 50–950 ramp

primary
#304CA7
secondary
#C1AE72
accent
#BB49DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #304CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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