#305EB7#305EB7

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

Color values

HEX#305EB7
RGBrgb(48, 94, 183)
HSLhsl(220, 58%, 45%)
HSVhsv(220, 74%, 72%)
CMYKcmyk(73.8%, 48.6%, 0%, 28.2%)
CIE-LABlab(41.30, 15.61, -51.71)
CIE-LCHlch(41.30, 54.01, 286.80°)
OKLaboklab(49.92% -0.021 -0.1484)
OKLCHoklch(49.92% 0.15 262)
XYZxyz(13.7658, 12.0512, 46.3912)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305EB7 #B78930
analogous
#30A1B7 #305EB7 #4630B7
triadic
#305EB7 #B7305E #5EB730
tetradic
#305EB7 #B730A1 #B78930 #30B746
square
#305EB7 #B730A1 #B78930 #30B746
split-complementary
#305EB7 #B74630 #A1B730
monochromatic
#172C56 #234587 #305EB7 #527ED2 #83A2DE

Accessibility & contrast

On white

6.16
#305EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #305EB7
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305EB7#FFFFFF#000000##FFFFFF
##305EB71.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C68BA
Deuteranopia (green-blind)
#005CB5
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #305eb7;
/* rgb */ color: rgb(48, 94, 183);
/* oklch */ color: oklch(49.9% 0.150 262.0);
Tailwind
colors: {
  custom: {
    50: '#7a8bcd',
    500: '#305eb7',
    950: '#000000',
  },
}
SCSS
$custom: #305eb7;
$custom-light: #7a8bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#305eb7",
  "rgb": {
    "r": 48,
    "g": 94,
    "b": 183
  },
  "hsl": {
    "h": 219.556,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49915,
    "c": 0.14992,
    "h": 262
  },
  "luminance": 0.12053
}

Semantic roles & 50–950 ramp

primary
#305EB7
secondary
#C8AE7B
accent
#AD46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #305EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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