#305CBA#305CBA

#305CBA is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.7% C 0.156 H 263.1°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#305CBA
RGBrgb(48, 92, 186)
HSLhsl(221, 59%, 46%)
HSVhsv(221, 74%, 73%)
CMYKcmyk(74.2%, 50.5%, 0%, 27.1%)
CIE-LABlab(40.94, 18.04, -54.04)
CIE-LCHlch(40.94, 56.97, 288.46°)
OKLaboklab(49.71% -0.0189 -0.1553)
OKLCHoklch(49.71% 0.156 263.1)
XYZxyz(13.9058, 11.8263, 47.9947)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CBA #BA8E30
analogous
#30A1BA #305CBA #4930BA
triadic
#305CBA #BA305C #5CBA30
tetradic
#305CBA #BA30A1 #BA8E30 #30BA49
square
#305CBA #BA30A1 #BA8E30 #30BA49
split-complementary
#305CBA #BA4930 #A1BA30
monochromatic
#172C59 #234489 #305CBA #547DD3 #85A2DF

Accessibility & contrast

On white

6.24
#305CBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #305CBA
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CBA#FFFFFF#000000##FFFFFF
##305CBA1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2367BD
Deuteranopia (green-blind)
#005BB8
Tritanopia (blue-blind)
#007282
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #305cba;
/* rgb */ color: rgb(48, 92, 186);
/* oklch */ color: oklch(49.7% 0.156 263.1);
Tailwind
colors: {
  custom: {
    50: '#7b89cf',
    500: '#305cba',
    950: '#000000',
  },
}
SCSS
$custom: #305cba;
$custom-light: #7b89cf;
$custom-dark: #000000;
JSON
{
  "hex": "#305cba",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 186
  },
  "hsl": {
    "h": 220.87,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49705,
    "c": 0.15649,
    "h": 263.1
  },
  "luminance": 0.11828
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #305CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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