#305EB6#305EB6

#305EB6 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.8% C 0.149 H 261.8°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#305EB6
RGBrgb(48, 94, 182)
HSLhsl(219, 58%, 45%)
HSVhsv(219, 74%, 71%)
CMYKcmyk(73.6%, 48.4%, 0%, 28.6%)
CIE-LABlab(41.23, 15.23, -51.23)
CIE-LCHlch(41.23, 53.44, 286.56°)
OKLaboklab(49.84% -0.0211 -0.147)
OKLCHoklch(49.84% 0.149 261.8)
XYZxyz(13.6621, 12.0097, 45.8450)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305EB6 #B68830
analogous
#30A1B6 #305EB6 #4530B6
triadic
#305EB6 #B6305E #5EB630
tetradic
#305EB6 #B630A1 #B68830 #30B645
square
#305EB6 #B630A1 #B68830 #30B645
split-complementary
#305EB6 #B64530 #A1B630
monochromatic
#162C55 #234586 #305EB6 #527ED1 #82A2DE

Accessibility & contrast

On white

6.17
#305EB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#305EB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305EB6
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305EB6#FFFFFF#000000##FFFFFF
##305EB61.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D68B9
Deuteranopia (green-blind)
#025BB4
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #305eb6;
/* rgb */ color: rgb(48, 94, 182);
/* oklch */ color: oklch(49.8% 0.149 261.8);
Tailwind
colors: {
  custom: {
    50: '#7a8bcc',
    500: '#305eb6',
    950: '#000000',
  },
}
SCSS
$custom: #305eb6;
$custom-light: #7a8bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#305eb6",
  "rgb": {
    "r": 48,
    "g": 94,
    "b": 182
  },
  "hsl": {
    "h": 219.403,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49844,
    "c": 0.14855,
    "h": 261.8
  },
  "luminance": 0.12011
}

Semantic roles & 50–950 ramp

primary
#305EB6
secondary
#C7AD7B
accent
#AC46E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305EB6

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

Preview Lab → · Contrast checker → · Palette generator →

#305EB6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva