#306EC6#306EC6

#306EC6 is a mid, vivid blue. Relative luminance 0.159; OKLCH L 54.4% C 0.151 H 257.8°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#306EC6
RGBrgb(48, 110, 198)
HSLhsl(215, 61%, 48%)
HSVhsv(215, 76%, 78%)
CMYKcmyk(75.8%, 44.4%, 0%, 22.4%)
CIE-LABlab(46.78, 11.00, -51.59)
CIE-LCHlch(46.78, 52.75, 282.04°)
OKLaboklab(54.44% -0.0321 -0.1478)
OKLCHoklch(54.44% 0.151 257.8)
XYZxyz(16.9842, 15.8555, 55.5804)
Luminance0.1586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306EC6 #C68830
analogous
#30B9C6 #306EC6 #3D30C6
triadic
#306EC6 #C6306E #6EC630
tetradic
#306EC6 #C630B9 #C68830 #30C63D
square
#306EC6 #C630B9 #C68830 #30C63D
split-complementary
#306EC6 #C63D30 #B9C630
monochromatic
#183763 #245395 #306EC6 #5C8FD7 #8DB1E3

Accessibility & contrast

On white

5.03
#306EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#306EC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #306EC6
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##306EC6#FFFFFF#000000##FFFFFF
##306EC61.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4176C9
Deuteranopia (green-blind)
#2269C4
Tritanopia (blue-blind)
#008390
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #306ec6;
/* rgb */ color: rgb(48, 110, 198);
/* oklch */ color: oklch(54.4% 0.151 257.8);
Tailwind
colors: {
  custom: {
    50: '#7d97d8',
    500: '#306ec6',
    950: '#000000',
  },
}
SCSS
$custom: #306ec6;
$custom-light: #7d97d8;
$custom-dark: #000000;
JSON
{
  "hex": "#306ec6",
  "rgb": {
    "r": 48,
    "g": 110,
    "b": 198
  },
  "hsl": {
    "h": 215.2,
    "s": 60.976,
    "l": 48.235
  },
  "oklch": {
    "l": 0.54443,
    "c": 0.15126,
    "h": 257.8
  },
  "luminance": 0.15857
}

Semantic roles & 50–950 ramp

primary
#306EC6
secondary
#CEAF84
accent
#A244E4
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #306EC6

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

Preview Lab → · Contrast checker → · Palette generator →

#306EC6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva