#304FA2#304FA2

#304FA2 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.2% C 0.139 H 265.7°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#304FA2
RGBrgb(48, 79, 162)
HSLhsl(224, 54%, 41%)
HSVhsv(224, 70%, 64%)
CMYKcmyk(70.4%, 51.2%, 0%, 36.5%)
CIE-LABlab(35.65, 17.54, -48.37)
CIE-LCHlch(35.65, 51.45, 289.93°)
OKLaboklab(45.15% -0.0105 -0.1389)
OKLCHoklch(45.15% 0.139 265.7)
XYZxyz(10.5342, 8.8279, 35.3242)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FA2 #A28330
analogous
#3088A2 #304FA2 #4A30A2
triadic
#304FA2 #A2304F #4FA230
tetradic
#304FA2 #A23088 #A28330 #30A24A
square
#304FA2 #A23088 #A28330 #30A24A
split-complementary
#304FA2 #A24A30 #88A230
monochromatic
#142144 #223873 #304FA2 #476AC8 #7690D6

Accessibility & contrast

On white

7.59
#304FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#304FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304FA2
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FA2#FFFFFF#000000##FFFFFF
##304FA21.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E59A5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#006371
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #304fa2;
/* rgb */ color: rgb(48, 79, 162);
/* oklch */ color: oklch(45.2% 0.139 265.7);
Tailwind
colors: {
  custom: {
    50: '#777fbe',
    500: '#304fa2',
    950: '#000000',
  },
}
SCSS
$custom: #304fa2;
$custom-light: #777fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#304fa2",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 223.684,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45152,
    "c": 0.1393,
    "h": 265.7
  },
  "luminance": 0.08829
}

Semantic roles & 50–950 ramp

primary
#304FA2
secondary
#BEA96F
accent
#B64ADE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #304FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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