#305BBA#305BBA

#305BBA is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.5% C 0.158 H 263.4°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#305BBA
RGBrgb(48, 91, 186)
HSLhsl(221, 59%, 46%)
HSVhsv(221, 74%, 73%)
CMYKcmyk(74.2%, 51.1%, 0%, 27.1%)
CIE-LABlab(40.66, 18.69, -54.49)
CIE-LCHlch(40.66, 57.60, 288.93°)
OKLaboklab(49.49% -0.0181 -0.1567)
OKLCHoklch(49.49% 0.158 263.4)
XYZxyz(13.8198, 11.6542, 47.9660)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305BBA #BA8F30
analogous
#30A0BA #305BBA #4A30BA
triadic
#305BBA #BA305B #5BBA30
tetradic
#305BBA #BA30A0 #BA8F30 #30BA4A
square
#305BBA #BA30A0 #BA8F30 #30BA4A
split-complementary
#305BBA #BA4A30 #A0BA30
monochromatic
#172B59 #234389 #305BBA #547CD3 #85A1DF

Accessibility & contrast

On white

6.30
#305BBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#305BBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305BBA
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305BBA#FFFFFF#000000##FFFFFF
##305BBA1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F67BD
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#007282
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #305bba;
/* rgb */ color: rgb(48, 91, 186);
/* oklch */ color: oklch(49.5% 0.158 263.4);
Tailwind
colors: {
  custom: {
    50: '#7b88cf',
    500: '#305bba',
    950: '#000000',
  },
}
SCSS
$custom: #305bba;
$custom-light: #7b88cf;
$custom-dark: #000000;
JSON
{
  "hex": "#305bba",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 186
  },
  "hsl": {
    "h": 221.304,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49494,
    "c": 0.15773,
    "h": 263.4
  },
  "luminance": 0.11656
}

Semantic roles & 50–950 ramp

primary
#305BBA
secondary
#C9B17D
accent
#B146E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #305BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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