#305CB8#305CB8

#305CB8 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.6% C 0.154 H 262.8°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#305CB8
RGBrgb(48, 92, 184)
HSLhsl(221, 59%, 45%)
HSVhsv(221, 74%, 72%)
CMYKcmyk(73.9%, 50%, 0%, 27.8%)
CIE-LABlab(40.80, 17.28, -53.09)
CIE-LCHlch(40.80, 55.83, 288.03°)
OKLaboklab(49.56% -0.0191 -0.1526)
OKLCHoklch(49.56% 0.154 262.8)
XYZxyz(13.6947, 11.7419, 46.8828)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CB8 #B88C30
analogous
#30A0B8 #305CB8 #4830B8
triadic
#305CB8 #B8305C #5CB830
tetradic
#305CB8 #B830A0 #B88C30 #30B848
square
#305CB8 #B830A0 #B88C30 #30B848
split-complementary
#305CB8 #B84830 #A0B830
monochromatic
#172B57 #234487 #305CB8 #537CD2 #84A1DF

Accessibility & contrast

On white

6.27
#305CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#305CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305CB8
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CB8#FFFFFF#000000##FFFFFF
##305CB81.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2667BB
Deuteranopia (green-blind)
#005AB6
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #305cb8;
/* rgb */ color: rgb(48, 92, 184);
/* oklch */ color: oklch(49.6% 0.154 262.8);
Tailwind
colors: {
  custom: {
    50: '#7b89ce',
    500: '#305cb8',
    950: '#000000',
  },
}
SCSS
$custom: #305cb8;
$custom-light: #7b89ce;
$custom-dark: #000000;
JSON
{
  "hex": "#305cb8",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 184
  },
  "hsl": {
    "h": 220.588,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49558,
    "c": 0.15376,
    "h": 262.8
  },
  "luminance": 0.11743
}

Semantic roles & 50–950 ramp

primary
#305CB8
secondary
#C8AF7C
accent
#AF46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #305CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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