#305BB3#305BB3

#305BB3 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.0% C 0.148 H 262.6°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#305BB3
RGBrgb(48, 91, 179)
HSLhsl(220, 58%, 45%)
HSVhsv(220, 73%, 70%)
CMYKcmyk(73.2%, 49.2%, 0%, 29.8%)
CIE-LABlab(40.19, 16.05, -51.15)
CIE-LCHlch(40.19, 53.61, 287.42°)
OKLaboklab(48.98% -0.019 -0.1469)
OKLCHoklch(48.98% 0.148 262.6)
XYZxyz(13.0938, 11.3638, 44.1424)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305BB3 #B38830
analogous
#309DB3 #305BB3 #4630B3
triadic
#305BB3 #B3305B #5BB330
tetradic
#305BB3 #B3309D #B38830 #30B346
square
#305BB3 #B3309D #B38830 #30B346
split-complementary
#305BB3 #B34630 #9DB330
monochromatic
#162A52 #234283 #305BB3 #507AD0 #809FDD

Accessibility & contrast

On white

6.42
#305BB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#305BB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305BB3
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305BB3#FFFFFF#000000##FFFFFF
##305BB31.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2965B6
Deuteranopia (green-blind)
#0059B1
Tritanopia (blue-blind)
#00707E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #305bb3;
/* rgb */ color: rgb(48, 91, 179);
/* oklch */ color: oklch(49.0% 0.148 262.6);
Tailwind
colors: {
  custom: {
    50: '#7a88ca',
    500: '#305bb3',
    950: '#000000',
  },
}
SCSS
$custom: #305bb3;
$custom-light: #7a88ca;
$custom-dark: #000000;
JSON
{
  "hex": "#305bb3",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 179
  },
  "hsl": {
    "h": 220.305,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4898,
    "c": 0.14809,
    "h": 262.6
  },
  "luminance": 0.11365
}

Semantic roles & 50–950 ramp

primary
#305BB3
secondary
#C6AD79
accent
#AE47E1
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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