#305DB2#305DB2

#305DB2 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.3% C 0.144 H 261.7°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#305DB2
RGBrgb(48, 93, 178)
HSLhsl(219, 58%, 44%)
HSVhsv(219, 73%, 70%)
CMYKcmyk(73%, 47.8%, 0%, 30.2%)
CIE-LABlab(40.69, 14.37, -49.76)
CIE-LCHlch(40.69, 51.79, 286.11°)
OKLaboklab(49.34% -0.0208 -0.1427)
OKLCHoklch(49.34% 0.144 261.7)
XYZxyz(13.1663, 11.6700, 43.6695)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305DB2 #B28530
analogous
#309EB2 #305DB2 #4430B2
triadic
#305DB2 #B2305D #5DB230
tetradic
#305DB2 #B2309E #B28530 #30B244
square
#305DB2 #B2309E #B28530 #30B244
split-complementary
#305DB2 #B24430 #9EB230
monochromatic
#162B52 #234482 #305DB2 #507CD0 #80A0DD

Accessibility & contrast

On white

6.30
#305DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#305DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305DB2
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305DB2#FFFFFF#000000##FFFFFF
##305DB21.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F66B5
Deuteranopia (green-blind)
#0C5AB0
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #305db2;
/* rgb */ color: rgb(48, 93, 178);
/* oklch */ color: oklch(49.3% 0.144 261.7);
Tailwind
colors: {
  custom: {
    50: '#798ac9',
    500: '#305db2',
    950: '#000000',
  },
}
SCSS
$custom: #305db2;
$custom-light: #798ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#305db2",
  "rgb": {
    "r": 48,
    "g": 93,
    "b": 178
  },
  "hsl": {
    "h": 219.231,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49342,
    "c": 0.14424,
    "h": 261.7
  },
  "luminance": 0.11671
}

Semantic roles & 50–950 ramp

primary
#305DB2
secondary
#C6AB78
accent
#AC47E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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