#304EC2#304EC2

#304EC2 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.5% C 0.185 H 267.6°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#304EC2
RGBrgb(48, 78, 194)
HSLhsl(228, 60%, 47%)
HSVhsv(228, 75%, 76%)
CMYKcmyk(75.3%, 59.8%, 0%, 23.9%)
CIE-LABlab(37.79, 30.16, -63.82)
CIE-LCHlch(37.79, 70.59, 295.30°)
OKLaboklab(47.52% -0.0078 -0.1843)
OKLCHoklch(47.52% 0.185 267.6)
XYZxyz(13.6775, 9.9707, 52.2322)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304EC2 #C2A430
analogous
#3097C2 #304EC2 #5B30C2
triadic
#304EC2 #C2304E #4EC230
tetradic
#304EC2 #C23097 #C2A430 #30C25B
square
#304EC2 #C23097 #C2A430 #30C25B
split-complementary
#304EC2 #C25B30 #97C230
monochromatic
#182760 #243A91 #304EC2 #5973D6 #8A9CE2

Accessibility & contrast

On white

7.01
#304EC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#304EC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304EC2
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304EC2#FFFFFF#000000##FFFFFF
##304EC21.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#0052C0
Tritanopia (blue-blind)
#006B80
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #304ec2;
/* rgb */ color: rgb(48, 78, 194);
/* oklch */ color: oklch(47.5% 0.185 267.6);
Tailwind
colors: {
  custom: {
    50: '#7e7fd5',
    500: '#304ec2',
    950: '#000000',
  },
}
SCSS
$custom: #304ec2;
$custom-light: #7e7fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#304ec2",
  "rgb": {
    "r": 48,
    "g": 78,
    "b": 194
  },
  "hsl": {
    "h": 227.671,
    "s": 60.331,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47519,
    "c": 0.18451,
    "h": 267.6
  },
  "luminance": 0.09972
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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