#305FBC#305FBC

#305FBC is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.5% C 0.156 H 262.2°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#305FBC
RGBrgb(48, 95, 188)
HSLhsl(220, 59%, 46%)
HSVhsv(220, 74%, 74%)
CMYKcmyk(74.5%, 49.5%, 0%, 26.3%)
CIE-LABlab(41.91, 16.84, -53.64)
CIE-LCHlch(41.91, 56.22, 287.43°)
OKLaboklab(50.49% -0.0211 -0.1541)
OKLCHoklch(50.49% 0.156 262.2)
XYZxyz(14.3850, 12.4420, 49.2106)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FBC #BC8D30
analogous
#30A5BC #305FBC #4730BC
triadic
#305FBC #BC305F #5FBC30
tetradic
#305FBC #BC30A5 #BC8D30 #30BC47
square
#305FBC #BC30A5 #BC8D30 #30BC47
split-complementary
#305FBC #BC4730 #A5BC30
monochromatic
#172E5A #24468B #305FBC #5580D4 #86A4E0

Accessibility & contrast

On white

6.02
#305FBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#305FBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FBC
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FBC#FFFFFF#000000##FFFFFF
##305FBC1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#296ABF
Deuteranopia (green-blind)
#005DBA
Tritanopia (blue-blind)
#007584
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #305fbc;
/* rgb */ color: rgb(48, 95, 188);
/* oklch */ color: oklch(50.5% 0.156 262.2);
Tailwind
colors: {
  custom: {
    50: '#7b8bd1',
    500: '#305fbc',
    950: '#000000',
  },
}
SCSS
$custom: #305fbc;
$custom-light: #7b8bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#305fbc",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 188
  },
  "hsl": {
    "h": 219.857,
    "s": 59.322,
    "l": 46.275
  },
  "oklch": {
    "l": 0.5049,
    "c": 0.15556,
    "h": 262.2
  },
  "luminance": 0.12444
}

Semantic roles & 50–950 ramp

primary
#305FBC
secondary
#CAB07E
accent
#AE45E3
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #305FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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