#305CBB#305CBB

#305CBB is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.8% C 0.158 H 263.2°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#305CBB
RGBrgb(48, 92, 187)
HSLhsl(221, 59%, 46%)
HSVhsv(221, 74%, 73%)
CMYKcmyk(74.3%, 50.8%, 0%, 26.7%)
CIE-LABlab(41.01, 18.42, -54.51)
CIE-LCHlch(41.01, 57.54, 288.67°)
OKLaboklab(49.78% -0.0188 -0.1567)
OKLCHoklch(49.78% 0.158 263.2)
XYZxyz(14.0125, 11.8690, 48.5565)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CBB #BB8F30
analogous
#30A1BB #305CBB #4930BB
triadic
#305CBB #BB305C #5CBB30
tetradic
#305CBB #BB30A1 #BB8F30 #30BB49
square
#305CBB #BB30A1 #BB8F30 #30BB49
split-complementary
#305CBB #BB4930 #A1BB30
monochromatic
#172C5A #23448A #305CBB #557DD3 #86A2E0

Accessibility & contrast

On white

6.22
#305CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#305CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305CBB
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CBB#FFFFFF#000000##FFFFFF
##305CBB1.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2167BE
Deuteranopia (green-blind)
#005BB9
Tritanopia (blue-blind)
#007383
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #305cbb;
/* rgb */ color: rgb(48, 92, 187);
/* oklch */ color: oklch(49.8% 0.158 263.2);
Tailwind
colors: {
  custom: {
    50: '#7b89d0',
    500: '#305cbb',
    950: '#000000',
  },
}
SCSS
$custom: #305cbb;
$custom-light: #7b89d0;
$custom-dark: #000000;
JSON
{
  "hex": "#305cbb",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 187
  },
  "hsl": {
    "h": 221.007,
    "s": 59.149,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49779,
    "c": 0.15787,
    "h": 263.2
  },
  "luminance": 0.11871
}

Semantic roles & 50–950 ramp

primary
#305CBB
secondary
#C9B17D
accent
#B145E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #305CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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