#305CB3#305CB3

#305CB3 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.2% C 0.147 H 262.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#305CB3
RGBrgb(48, 92, 179)
HSLhsl(220, 58%, 45%)
HSVhsv(220, 73%, 70%)
CMYKcmyk(73.2%, 48.6%, 0%, 29.8%)
CIE-LABlab(40.47, 15.40, -50.69)
CIE-LCHlch(40.47, 52.98, 286.90°)
OKLaboklab(49.2% -0.0198 -0.1455)
OKLCHoklch(49.2% 0.147 262.2)
XYZxyz(13.1798, 11.5359, 44.1711)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CB3 #B38730
analogous
#309EB3 #305CB3 #4530B3
triadic
#305CB3 #B3305C #5CB330
tetradic
#305CB3 #B3309E #B38730 #30B345
square
#305CB3 #B3309E #B38730 #30B345
split-complementary
#305CB3 #B34530 #9EB330
monochromatic
#162A52 #234383 #305CB3 #507BD0 #809FDD

Accessibility & contrast

On white

6.35
#305CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#305CB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305CB3
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CB3#FFFFFF#000000##FFFFFF
##305CB31.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C66B6
Deuteranopia (green-blind)
#015AB1
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #305cb3;
/* rgb */ color: rgb(48, 92, 179);
/* oklch */ color: oklch(49.2% 0.147 262.2);
Tailwind
colors: {
  custom: {
    50: '#7a89ca',
    500: '#305cb3',
    950: '#000000',
  },
}
SCSS
$custom: #305cb3;
$custom-light: #7a89ca;
$custom-dark: #000000;
JSON
{
  "hex": "#305cb3",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 179
  },
  "hsl": {
    "h": 219.847,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49196,
    "c": 0.14685,
    "h": 262.2
  },
  "luminance": 0.11537
}

Semantic roles & 50–950 ramp

primary
#305CB3
secondary
#C6AC79
accent
#AD47E1
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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