#305FB3#305FB3

#305FB3 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 49.9% C 0.143 H 261.0°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#305FB3
RGBrgb(48, 95, 179)
HSLhsl(218, 58%, 45%)
HSVhsv(218, 73%, 70%)
CMYKcmyk(73.2%, 46.9%, 0%, 29.8%)
CIE-LABlab(41.32, 13.45, -49.32)
CIE-LCHlch(41.32, 51.13, 285.25°)
OKLaboklab(49.85% -0.0225 -0.1414)
OKLCHoklch(49.85% 0.143 261)
XYZxyz(13.4449, 12.0660, 44.2595)
Luminance0.1207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FB3 #B38430
analogous
#30A1B3 #305FB3 #4230B3
triadic
#305FB3 #B3305F #5FB330
tetradic
#305FB3 #B330A1 #B38430 #30B342
square
#305FB3 #B330A1 #B38430 #30B342
split-complementary
#305FB3 #B34230 #A1B330
monochromatic
#162C52 #234583 #305FB3 #507ED0 #80A2DD

Accessibility & contrast

On white

6.15
#305FB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#305FB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FB3
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FB3#FFFFFF#000000##FFFFFF
##305FB31.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3368B6
Deuteranopia (green-blind)
#135CB1
Tritanopia (blue-blind)
#007380
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #305fb3;
/* rgb */ color: rgb(48, 95, 179);
/* oklch */ color: oklch(49.9% 0.143 261.0);
Tailwind
colors: {
  custom: {
    50: '#798bca',
    500: '#305fb3',
    950: '#000000',
  },
}
SCSS
$custom: #305fb3;
$custom-light: #798bca;
$custom-dark: #000000;
JSON
{
  "hex": "#305fb3",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 179
  },
  "hsl": {
    "h": 218.473,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4985,
    "c": 0.1432,
    "h": 261
  },
  "luminance": 0.12067
}

Semantic roles & 50–950 ramp

primary
#305FB3
secondary
#C6AA79
accent
#AA47E1
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #305FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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