#304FC2#304FC2

#304FC2 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.7% C 0.183 H 267.3°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#304FC2
RGBrgb(48, 79, 194)
HSLhsl(227, 60%, 47%)
HSVhsv(227, 75%, 76%)
CMYKcmyk(75.3%, 59.3%, 0%, 23.9%)
CIE-LABlab(38.05, 29.51, -63.40)
CIE-LCHlch(38.05, 69.94, 294.96°)
OKLaboklab(47.71% -0.0085 -0.1831)
OKLCHoklch(47.71% 0.183 267.3)
XYZxyz(13.7491, 10.1139, 52.2560)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FC2 #C2A330
analogous
#3098C2 #304FC2 #5A30C2
triadic
#304FC2 #C2304F #4FC230
tetradic
#304FC2 #C23098 #C2A330 #30C25A
square
#304FC2 #C23098 #C2A330 #30C25A
split-complementary
#304FC2 #C25A30 #98C230
monochromatic
#182760 #243B91 #304FC2 #5974D6 #8A9DE2

Accessibility & contrast

On white

6.95
#304FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#304FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #304FC2
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FC2#FFFFFF#000000##FFFFFF
##304FC21.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#0053C0
Tritanopia (blue-blind)
#006C81
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #304fc2;
/* rgb */ color: rgb(48, 79, 194);
/* oklch */ color: oklch(47.7% 0.183 267.3);
Tailwind
colors: {
  custom: {
    50: '#7e80d5',
    500: '#304fc2',
    950: '#000000',
  },
}
SCSS
$custom: #304fc2;
$custom-light: #7e80d5;
$custom-dark: #000000;
JSON
{
  "hex": "#304fc2",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 194
  },
  "hsl": {
    "h": 227.26,
    "s": 60.331,
    "l": 47.451
  },
  "oklch": {
    "l": 0.4771,
    "c": 0.1833,
    "h": 267.3
  },
  "luminance": 0.10115
}

Semantic roles & 50–950 ramp

primary
#304FC2
secondary
#CCBC82
accent
#C244E3
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #304FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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