#304EC0#304EC0

#304EC0 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.3% C 0.182 H 267.5°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#304EC0
RGBrgb(48, 78, 192)
HSLhsl(228, 60%, 47%)
HSVhsv(228, 75%, 75%)
CMYKcmyk(75%, 59.4%, 0%, 24.7%)
CIE-LABlab(37.63, 29.42, -62.92)
CIE-LCHlch(37.63, 69.46, 295.06°)
OKLaboklab(47.35% -0.0078 -0.1817)
OKLCHoklch(47.35% 0.182 267.5)
XYZxyz(13.4544, 9.8815, 51.0572)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304EC0 #C0A230
analogous
#3096C0 #304EC0 #5A30C0
triadic
#304EC0 #C0304E #4EC030
tetradic
#304EC0 #C03096 #C0A230 #30C05A
square
#304EC0 #C03096 #C0A230 #30C05A
split-complementary
#304EC0 #C05A30 #96C030
monochromatic
#18265E #243A8F #304EC0 #5872D5 #899BE1

Accessibility & contrast

On white

7.06
#304EC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#304EC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304EC0
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304EC0#FFFFFF#000000##FFFFFF
##304EC01.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC4
Deuteranopia (green-blind)
#0052BE
Tritanopia (blue-blind)
#006B7F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #304ec0;
/* rgb */ color: rgb(48, 78, 192);
/* oklch */ color: oklch(47.3% 0.182 267.5);
Tailwind
colors: {
  custom: {
    50: '#7d7fd4',
    500: '#304ec0',
    950: '#000000',
  },
}
SCSS
$custom: #304ec0;
$custom-light: #7d7fd4;
$custom-dark: #000000;
JSON
{
  "hex": "#304ec0",
  "rgb": {
    "r": 48,
    "g": 78,
    "b": 192
  },
  "hsl": {
    "h": 227.5,
    "s": 60,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47349,
    "c": 0.18185,
    "h": 267.5
  },
  "luminance": 0.09883
}

Semantic roles & 50–950 ramp

primary
#304EC0
secondary
#CBBC80
accent
#C245E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #304EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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