#304FA1#304FA1

#304FA1 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.1% C 0.138 H 265.6°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#304FA1
RGBrgb(48, 79, 161)
HSLhsl(224, 54%, 41%)
HSVhsv(224, 70%, 63%)
CMYKcmyk(70.2%, 50.9%, 0%, 36.9%)
CIE-LABlab(35.58, 17.16, -47.88)
CIE-LCHlch(35.58, 50.87, 289.72°)
OKLaboklab(45.08% -0.0106 -0.1375)
OKLCHoklch(45.08% 0.138 265.6)
XYZxyz(10.4457, 8.7925, 34.8579)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FA1 #A18230
analogous
#3087A1 #304FA1 #4930A1
triadic
#304FA1 #A1304F #4FA130
tetradic
#304FA1 #A13087 #A18230 #30A149
square
#304FA1 #A13087 #A18230 #30A149
split-complementary
#304FA1 #A14930 #87A130
monochromatic
#142143 #223872 #304FA1 #466AC8 #7590D6

Accessibility & contrast

On white

7.61
#304FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#304FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304FA1
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FA1#FFFFFF#000000##FFFFFF
##304FA11.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F59A4
Deuteranopia (green-blind)
#004F9F
Tritanopia (blue-blind)
#006270
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #304fa1;
/* rgb */ color: rgb(48, 79, 161);
/* oklch */ color: oklch(45.1% 0.138 265.6);
Tailwind
colors: {
  custom: {
    50: '#767fbd',
    500: '#304fa1',
    950: '#000000',
  },
}
SCSS
$custom: #304fa1;
$custom-light: #767fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#304fa1",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 161
  },
  "hsl": {
    "h": 223.54,
    "s": 54.067,
    "l": 40.98
  },
  "oklch": {
    "l": 0.45077,
    "c": 0.13788,
    "h": 265.6
  },
  "luminance": 0.08794
}

Semantic roles & 50–950 ramp

primary
#304FA1
secondary
#BEA86F
accent
#B54ADD
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #304FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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