#305FB1#305FB1

#305FB1 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.7% C 0.140 H 260.7°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#305FB1
RGBrgb(48, 95, 177)
HSLhsl(218, 57%, 44%)
HSVhsv(218, 73%, 69%)
CMYKcmyk(72.9%, 46.3%, 0%, 30.6%)
CIE-LABlab(41.19, 12.69, -48.35)
CIE-LCHlch(41.19, 49.99, 284.71°)
OKLaboklab(49.71% -0.0228 -0.1386)
OKLCHoklch(49.71% 0.14 260.7)
XYZxyz(13.2441, 11.9857, 43.2019)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FB1 #B18230
analogous
#30A0B1 #305FB1 #4230B1
triadic
#305FB1 #B1305F #5FB130
tetradic
#305FB1 #B130A0 #B18230 #30B142
square
#305FB1 #B130A0 #B18230 #30B142
split-complementary
#305FB1 #B14230 #A0B130
monochromatic
#162B51 #234581 #305FB1 #4F7ECF #7FA1DC

Accessibility & contrast

On white

6.18
#305FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#305FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FB1
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FB1#FFFFFF#000000##FFFFFF
##305FB11.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3467B4
Deuteranopia (green-blind)
#185CAF
Tritanopia (blue-blind)
#00727F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #305fb1;
/* rgb */ color: rgb(48, 95, 177);
/* oklch */ color: oklch(49.7% 0.140 260.7);
Tailwind
colors: {
  custom: {
    50: '#798bc9',
    500: '#305fb1',
    950: '#000000',
  },
}
SCSS
$custom: #305fb1;
$custom-light: #798bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#305fb1",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 177
  },
  "hsl": {
    "h": 218.14,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49711,
    "c": 0.14043,
    "h": 260.7
  },
  "luminance": 0.11987
}

Semantic roles & 50–950 ramp

primary
#305FB1
secondary
#C5A978
accent
#A947E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #305FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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