#304CC2#304CC2

#304CC2 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.1% C 0.187 H 268.0°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#304CC2
RGBrgb(48, 76, 194)
HSLhsl(228, 60%, 47%)
HSVhsv(228, 75%, 76%)
CMYKcmyk(75.3%, 60.8%, 0%, 23.9%)
CIE-LABlab(37.28, 31.46, -64.65)
CIE-LCHlch(37.28, 71.90, 295.95°)
OKLaboklab(47.14% -0.0065 -0.1868)
OKLCHoklch(47.14% 0.187 268)
XYZxyz(13.5376, 9.6908, 52.1855)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CC2 #C2A630
analogous
#3095C2 #304CC2 #5D30C2
triadic
#304CC2 #C2304C #4CC230
tetradic
#304CC2 #C23095 #C2A630 #30C25D
square
#304CC2 #C23095 #C2A630 #30C25D
split-complementary
#304CC2 #C25D30 #95C230
monochromatic
#182660 #243991 #304CC2 #5971D6 #8A9BE2

Accessibility & contrast

On white

7.15
#304CC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#304CC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304CC2
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CC2#FFFFFF#000000##FFFFFF
##304CC21.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#0051C0
Tritanopia (blue-blind)
#006A80
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #304cc2;
/* rgb */ color: rgb(48, 76, 194);
/* oklch */ color: oklch(47.1% 0.187 268.0);
Tailwind
colors: {
  custom: {
    50: '#7e7dd5',
    500: '#304cc2',
    950: '#000000',
  },
}
SCSS
$custom: #304cc2;
$custom-light: #7e7dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#304cc2",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 194
  },
  "hsl": {
    "h": 228.493,
    "s": 60.331,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47141,
    "c": 0.18691,
    "h": 268
  },
  "luminance": 0.09692
}

Semantic roles & 50–950 ramp

primary
#304CC2
secondary
#CCBE82
accent
#C544E3
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #304CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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