#304FC3#304FC3

#304FC3 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.8% C 0.185 H 267.4°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#304FC3
RGBrgb(48, 79, 195)
HSLhsl(227, 60%, 48%)
HSVhsv(227, 75%, 76%)
CMYKcmyk(75.4%, 59.5%, 0%, 23.5%)
CIE-LABlab(38.13, 29.88, -63.86)
CIE-LCHlch(38.13, 70.50, 295.08°)
OKLaboklab(47.8% -0.0085 -0.1844)
OKLCHoklch(47.8% 0.185 267.4)
XYZxyz(13.8618, 10.1590, 52.8495)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FC3 #C3A430
analogous
#3098C3 #304FC3 #5A30C3
triadic
#304FC3 #C3304F #4FC330
tetradic
#304FC3 #C33098 #C3A430 #30C35A
square
#304FC3 #C33098 #C3A430 #30C35A
split-complementary
#304FC3 #C35A30 #98C330
monochromatic
#182761 #243B92 #304FC3 #5A74D6 #8B9DE2

Accessibility & contrast

On white

6.93
#304FC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#304FC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #304FC3
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FC3#FFFFFF#000000##FFFFFF
##304FC31.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C7
Deuteranopia (green-blind)
#0053C1
Tritanopia (blue-blind)
#006C81
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #304fc3;
/* rgb */ color: rgb(48, 79, 195);
/* oklch */ color: oklch(47.8% 0.185 267.4);
Tailwind
colors: {
  custom: {
    50: '#7e80d6',
    500: '#304fc3',
    950: '#000000',
  },
}
SCSS
$custom: #304fc3;
$custom-light: #7e80d6;
$custom-dark: #000000;
JSON
{
  "hex": "#304fc3",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 195
  },
  "hsl": {
    "h": 227.347,
    "s": 60.494,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47795,
    "c": 0.18462,
    "h": 267.4
  },
  "luminance": 0.1016
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304FC3

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

Preview Lab → · Contrast checker → · Palette generator →

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