#304FC0#304FC0

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

Color values

HEX#304FC0
RGBrgb(48, 79, 192)
HSLhsl(227, 60%, 47%)
HSVhsv(227, 75%, 75%)
CMYKcmyk(75%, 58.9%, 0%, 24.7%)
CIE-LABlab(37.89, 28.77, -62.50)
CIE-LCHlch(37.89, 68.80, 294.72°)
OKLaboklab(47.54% -0.0085 -0.1804)
OKLCHoklch(47.54% 0.181 267.3)
XYZxyz(13.5260, 10.0246, 51.0810)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FC0 #C0A130
analogous
#3097C0 #304FC0 #5930C0
triadic
#304FC0 #C0304F #4FC030
tetradic
#304FC0 #C03097 #C0A130 #30C059
square
#304FC0 #C03097 #C0A130 #30C059
split-complementary
#304FC0 #C05930 #97C030
monochromatic
#18275E #243B8F #304FC0 #5873D5 #899CE1

Accessibility & contrast

On white

6.99
#304FC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#304FC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #304FC0
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FC0#FFFFFF#000000##FFFFFF
##304FC01.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C4
Deuteranopia (green-blind)
#0053BE
Tritanopia (blue-blind)
#006B80
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #304fc0;
/* rgb */ color: rgb(48, 79, 192);
/* oklch */ color: oklch(47.5% 0.181 267.3);
Tailwind
colors: {
  custom: {
    50: '#7d80d4',
    500: '#304fc0',
    950: '#000000',
  },
}
SCSS
$custom: #304fc0;
$custom-light: #7d80d4;
$custom-dark: #000000;
JSON
{
  "hex": "#304fc0",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 192
  },
  "hsl": {
    "h": 227.083,
    "s": 60,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47541,
    "c": 0.18063,
    "h": 267.3
  },
  "luminance": 0.10026
}

Semantic roles & 50–950 ramp

primary
#304FC0
secondary
#CBBB80
accent
#C145E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #304FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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