#304AA1#304AA1

#304AA1 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.0% C 0.144 H 267.6°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#304AA1
RGBrgb(48, 74, 161)
HSLhsl(226, 54%, 41%)
HSVhsv(226, 70%, 63%)
CMYKcmyk(70.2%, 54%, 0%, 36.9%)
CIE-LABlab(34.19, 20.49, -50.14)
CIE-LCHlch(34.19, 54.17, 292.23°)
OKLaboklab(44.02% -0.0061 -0.1442)
OKLCHoklch(44.02% 0.144 267.6)
XYZxyz(10.0985, 8.0981, 34.7422)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304AA1 #A18730
analogous
#3082A1 #304AA1 #4E30A1
triadic
#304AA1 #A1304A #4AA130
tetradic
#304AA1 #A13082 #A18730 #30A14E
square
#304AA1 #A13082 #A18730 #30A14E
split-complementary
#304AA1 #A14E30 #82A130
monochromatic
#141F43 #223472 #304AA1 #4664C8 #758CD6

Accessibility & contrast

On white

8.02
#304AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#304AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304AA1
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304AA1#FFFFFF#000000##FFFFFF
##304AA11.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C56A4
Deuteranopia (green-blind)
#004B9F
Tritanopia (blue-blind)
#005F6E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #304aa1;
/* rgb */ color: rgb(48, 74, 161);
/* oklch */ color: oklch(44.0% 0.144 267.6);
Tailwind
colors: {
  custom: {
    50: '#777cbd',
    500: '#304aa1',
    950: '#000000',
  },
}
SCSS
$custom: #304aa1;
$custom-light: #777cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#304aa1",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 161
  },
  "hsl": {
    "h": 226.195,
    "s": 54.067,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44019,
    "c": 0.14431,
    "h": 267.6
  },
  "luminance": 0.08099
}

Semantic roles & 50–950 ramp

primary
#304AA1
secondary
#BEAC6F
accent
#BC4ADD
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #304AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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