#305FB2#305FB2

#305FB2 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 49.8% C 0.142 H 260.8°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#305FB2
RGBrgb(48, 95, 178)
HSLhsl(218, 58%, 44%)
HSVhsv(218, 73%, 70%)
CMYKcmyk(73%, 46.6%, 0%, 30.2%)
CIE-LABlab(41.26, 13.07, -48.84)
CIE-LCHlch(41.26, 50.56, 284.98°)
OKLaboklab(49.78% -0.0226 -0.14)
OKLCHoklch(49.78% 0.142 260.8)
XYZxyz(13.3441, 12.0257, 43.7288)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FB2 #B28330
analogous
#30A0B2 #305FB2 #4230B2
triadic
#305FB2 #B2305F #5FB230
tetradic
#305FB2 #B230A0 #B28330 #30B242
square
#305FB2 #B230A0 #B28330 #30B242
split-complementary
#305FB2 #B24230 #A0B230
monochromatic
#162C52 #234582 #305FB2 #507ED0 #80A1DD

Accessibility & contrast

On white

6.17
#305FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #305FB2
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FB2#FFFFFF#000000##FFFFFF
##305FB21.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3468B5
Deuteranopia (green-blind)
#165CB0
Tritanopia (blue-blind)
#007380
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #305fb2;
/* rgb */ color: rgb(48, 95, 178);
/* oklch */ color: oklch(49.8% 0.142 260.8);
Tailwind
colors: {
  custom: {
    50: '#798bc9',
    500: '#305fb2',
    950: '#000000',
  },
}
SCSS
$custom: #305fb2;
$custom-light: #798bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#305fb2",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 178
  },
  "hsl": {
    "h": 218.308,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4978,
    "c": 0.14182,
    "h": 260.8
  },
  "luminance": 0.12027
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #305FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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