#305FB7#305FB7

#305FB7 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.1% C 0.149 H 261.6°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#305FB7
RGBrgb(48, 95, 183)
HSLhsl(219, 58%, 45%)
HSVhsv(219, 74%, 72%)
CMYKcmyk(73.8%, 48.1%, 0%, 28.2%)
CIE-LABlab(41.58, 14.96, -51.25)
CIE-LCHlch(41.58, 53.39, 286.27°)
OKLaboklab(50.13% -0.0218 -0.1471)
OKLCHoklch(50.13% 0.149 261.6)
XYZxyz(13.8553, 12.2302, 46.4210)
Luminance0.1223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FB7 #B78830
analogous
#30A3B7 #305FB7 #4430B7
triadic
#305FB7 #B7305F #5FB730
tetradic
#305FB7 #B730A3 #B78830 #30B744
square
#305FB7 #B730A3 #B78830 #30B744
split-complementary
#305FB7 #B74430 #A3B730
monochromatic
#172D56 #234687 #305FB7 #527FD2 #83A3DE

Accessibility & contrast

On white

6.09
#305FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#305FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FB7
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FB7#FFFFFF#000000##FFFFFF
##305FB71.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F69BA
Deuteranopia (green-blind)
#055CB5
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #305fb7;
/* rgb */ color: rgb(48, 95, 183);
/* oklch */ color: oklch(50.1% 0.149 261.6);
Tailwind
colors: {
  custom: {
    50: '#7a8bcd',
    500: '#305fb7',
    950: '#000000',
  },
}
SCSS
$custom: #305fb7;
$custom-light: #7a8bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#305fb7",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 183
  },
  "hsl": {
    "h": 219.111,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50131,
    "c": 0.14871,
    "h": 261.6
  },
  "luminance": 0.12232
}

Semantic roles & 50–950 ramp

primary
#305FB7
secondary
#C8AD7B
accent
#AC46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #305FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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