#305BDC#305BDC

#305BDC is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 52.2% C 0.203 H 265.6°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#305BDC
RGBrgb(48, 91, 220)
HSLhsl(225, 71%, 53%)
HSVhsv(225, 78%, 86%)
CMYKcmyk(78.2%, 58.6%, 0%, 13.7%)
CIE-LABlab(43.18, 31.39, -70.02)
CIE-LCHlch(43.18, 76.74, 294.15°)
OKLaboklab(52.18% -0.0157 -0.2024)
OKLCHoklch(52.18% 0.203 265.6)
XYZxyz(17.8737, 13.2758, 69.3167)
Luminance0.1328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305BDC #DCB130
analogous
#30B1DC #305BDC #5B30DC
triadic
#305BDC #DC305B #5BDC30
tetradic
#305BDC #DC30B1 #DCB130 #30DC5B
square
#305BDC #DC30B1 #DCB130 #30DC5B
split-complementary
#305BDC #DC5B30 #B1DC30
monochromatic
#152F7D #1E43B1 #305BDC #6484E5 #99AEEE

Accessibility & contrast

On white

5.74
#305BDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#305BDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305BDC
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305BDC#FFFFFF#000000##FFFFFF
##305BDC1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE0
Deuteranopia (green-blind)
#005EDA
Tritanopia (blue-blind)
#007C93
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #305bdc;
/* rgb */ color: rgb(48, 91, 220);
/* oklch */ color: oklch(52.2% 0.203 265.6);
Tailwind
colors: {
  custom: {
    50: '#8388e8',
    500: '#305bdc',
    950: '#000000',
  },
}
SCSS
$custom: #305bdc;
$custom-light: #8388e8;
$custom-dark: #000000;
JSON
{
  "hex": "#305bdc",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 220
  },
  "hsl": {
    "h": 225,
    "s": 71.074,
    "l": 52.549
  },
  "oklch": {
    "l": 0.52183,
    "c": 0.20297,
    "h": 265.6
  },
  "luminance": 0.13278
}

Semantic roles & 50–950 ramp

primary
#305BDC
secondary
#D9C78F
accent
#C13AEE
background
#F8F8FE
surface
#F0EFFD
border
#CBCAD5
text
#0D0B16
muted
#7D7C84

Preview Lab

Preview with #305BDC

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

Preview Lab → · Contrast checker → · Palette generator →

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