#305EB2#305EB2

#305EB2 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.6% C 0.143 H 261.3°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#305EB2
RGBrgb(48, 94, 178)
HSLhsl(219, 58%, 44%)
HSVhsv(219, 73%, 70%)
CMYKcmyk(73%, 47.2%, 0%, 30.2%)
CIE-LABlab(40.97, 13.72, -49.30)
CIE-LCHlch(40.97, 51.17, 285.55°)
OKLaboklab(49.56% -0.0217 -0.1414)
OKLCHoklch(49.56% 0.143 261.3)
XYZxyz(13.2546, 11.8467, 43.6989)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305EB2 #B28430
analogous
#309FB2 #305EB2 #4330B2
triadic
#305EB2 #B2305E #5EB230
tetradic
#305EB2 #B2309F #B28430 #30B243
square
#305EB2 #B2309F #B28430 #30B243
split-complementary
#305EB2 #B24330 #9FB230
monochromatic
#162B52 #234582 #305EB2 #507DD0 #80A1DD

Accessibility & contrast

On white

6.23
#305EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#305EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305EB2
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305EB2#FFFFFF#000000##FFFFFF
##305EB21.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3167B5
Deuteranopia (green-blind)
#115BB0
Tritanopia (blue-blind)
#00727F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #305eb2;
/* rgb */ color: rgb(48, 94, 178);
/* oklch */ color: oklch(49.6% 0.143 261.3);
Tailwind
colors: {
  custom: {
    50: '#798bc9',
    500: '#305eb2',
    950: '#000000',
  },
}
SCSS
$custom: #305eb2;
$custom-light: #798bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#305eb2",
  "rgb": {
    "r": 48,
    "g": 94,
    "b": 178
  },
  "hsl": {
    "h": 218.769,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49561,
    "c": 0.14303,
    "h": 261.3
  },
  "luminance": 0.11848
}

Semantic roles & 50–950 ramp

primary
#305EB2
secondary
#C6AA78
accent
#AA47E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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