#304DC2#304DC2

#304DC2 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.3% C 0.186 H 267.8°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#304DC2
RGBrgb(48, 77, 194)
HSLhsl(228, 60%, 47%)
HSVhsv(228, 75%, 76%)
CMYKcmyk(75.3%, 60.3%, 0%, 23.9%)
CIE-LABlab(37.53, 30.81, -64.24)
CIE-LCHlch(37.53, 71.24, 295.62°)
OKLaboklab(47.33% -0.0071 -0.1856)
OKLCHoklch(47.33% 0.186 267.8)
XYZxyz(13.6070, 9.8297, 52.2087)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304DC2 #C2A530
analogous
#3096C2 #304DC2 #5C30C2
triadic
#304DC2 #C2304D #4DC230
tetradic
#304DC2 #C23096 #C2A530 #30C25C
square
#304DC2 #C23096 #C2A530 #30C25C
split-complementary
#304DC2 #C25C30 #96C230
monochromatic
#182660 #243A91 #304DC2 #5972D6 #8A9CE2

Accessibility & contrast

On white

7.08
#304DC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#304DC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304DC2
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304DC2#FFFFFF#000000##FFFFFF
##304DC21.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #304dc2;
/* rgb */ color: rgb(48, 77, 194);
/* oklch */ color: oklch(47.3% 0.186 267.8);
Tailwind
colors: {
  custom: {
    50: '#7e7ed5',
    500: '#304dc2',
    950: '#000000',
  },
}
SCSS
$custom: #304dc2;
$custom-light: #7e7ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#304dc2",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 194
  },
  "hsl": {
    "h": 228.082,
    "s": 60.331,
    "l": 47.451
  },
  "oklch": {
    "l": 0.4733,
    "c": 0.18571,
    "h": 267.8
  },
  "luminance": 0.09831
}

Semantic roles & 50–950 ramp

primary
#304DC2
secondary
#CCBD82
accent
#C444E3
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #304DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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