#305CB0#305CB0

#305CB0 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.0% C 0.143 H 261.8°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#305CB0
RGBrgb(48, 92, 176)
HSLhsl(219, 57%, 44%)
HSVhsv(219, 73%, 69%)
CMYKcmyk(72.7%, 47.7%, 0%, 31%)
CIE-LABlab(40.27, 14.27, -49.25)
CIE-LCHlch(40.27, 51.27, 286.15°)
OKLaboklab(48.98% -0.0203 -0.1412)
OKLCHoklch(48.98% 0.143 261.8)
XYZxyz(12.8797, 11.4159, 42.5906)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CB0 #B08430
analogous
#309CB0 #305CB0 #4430B0
triadic
#305CB0 #B0305C #5CB030
tetradic
#305CB0 #B0309C #B08430 #30B044
square
#305CB0 #B0309C #B08430 #30B044
split-complementary
#305CB0 #B04430 #9CB030
monochromatic
#162A50 #234380 #305CB0 #4E7BCF #7E9FDC

Accessibility & contrast

On white

6.40
#305CB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#305CB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305CB0
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CB0#FFFFFF#000000##FFFFFF
##305CB01.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F65B3
Deuteranopia (green-blind)
#0D59AE
Tritanopia (blue-blind)
#00707D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #305cb0;
/* rgb */ color: rgb(48, 92, 176);
/* oklch */ color: oklch(49.0% 0.143 261.8);
Tailwind
colors: {
  custom: {
    50: '#7989c8',
    500: '#305cb0',
    950: '#000000',
  },
}
SCSS
$custom: #305cb0;
$custom-light: #7989c8;
$custom-dark: #000000;
JSON
{
  "hex": "#305cb0",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 176
  },
  "hsl": {
    "h": 219.375,
    "s": 57.143,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48982,
    "c": 0.1427,
    "h": 261.8
  },
  "luminance": 0.11417
}

Semantic roles & 50–950 ramp

primary
#305CB0
secondary
#C5AA77
accent
#AC47E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305CB0

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

Preview Lab → · Contrast checker → · Palette generator →

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