#305BBC#305BBC

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

Color values

HEX#305BBC
RGBrgb(48, 91, 188)
HSLhsl(222, 59%, 46%)
HSVhsv(222, 74%, 74%)
CMYKcmyk(74.5%, 51.6%, 0%, 26.3%)
CIE-LABlab(40.80, 19.45, -55.43)
CIE-LCHlch(40.80, 58.74, 289.33°)
OKLaboklab(49.64% -0.0178 -0.1595)
OKLCHoklch(49.64% 0.16 263.6)
XYZxyz(14.0339, 11.7398, 49.0936)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305BBC #BC9130
analogous
#30A1BC #305BBC #4B30BC
triadic
#305BBC #BC305B #5BBC30
tetradic
#305BBC #BC30A1 #BC9130 #30BC4B
square
#305BBC #BC30A1 #BC9130 #30BC4B
split-complementary
#305BBC #BC4B30 #A1BC30
monochromatic
#172C5A #24438B #305BBC #557CD4 #86A2E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##305BBC#FFFFFF#000000##FFFFFF
##305BBC1.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)
#1C67BF
Deuteranopia (green-blind)
#005ABA
Tritanopia (blue-blind)
#007283
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #305bbc;
/* rgb */ color: rgb(48, 91, 188);
/* oklch */ color: oklch(49.6% 0.160 263.6);
Tailwind
colors: {
  custom: {
    50: '#7c88d1',
    500: '#305bbc',
    950: '#000000',
  },
}
SCSS
$custom: #305bbc;
$custom-light: #7c88d1;
$custom-dark: #000000;
JSON
{
  "hex": "#305bbc",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 188
  },
  "hsl": {
    "h": 221.571,
    "s": 59.322,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49643,
    "c": 0.16046,
    "h": 263.6
  },
  "luminance": 0.11741
}

Semantic roles & 50–950 ramp

primary
#305BBC
secondary
#CAB27E
accent
#B245E3
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #305BBC

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

Preview Lab → · Contrast checker → · Palette generator →

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