#305DB3#305DB3

#305DB3 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.4% C 0.146 H 261.8°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#305DB3
RGBrgb(48, 93, 179)
HSLhsl(219, 58%, 45%)
HSVhsv(219, 73%, 70%)
CMYKcmyk(73.2%, 48%, 0%, 29.8%)
CIE-LABlab(40.75, 14.75, -50.24)
CIE-LCHlch(40.75, 52.36, 286.36°)
OKLaboklab(49.41% -0.0207 -0.1441)
OKLCHoklch(49.41% 0.146 261.8)
XYZxyz(13.2670, 11.7103, 44.2002)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305DB3 #B38630
analogous
#309FB3 #305DB3 #4430B3
triadic
#305DB3 #B3305D #5DB330
tetradic
#305DB3 #B3309F #B38630 #30B344
square
#305DB3 #B3309F #B38630 #30B344
split-complementary
#305DB3 #B34430 #9FB330
monochromatic
#162B52 #234483 #305DB3 #507CD0 #80A0DD

Accessibility & contrast

On white

6.28
#305DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#305DB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305DB3
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305DB3#FFFFFF#000000##FFFFFF
##305DB31.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E66B6
Deuteranopia (green-blind)
#085AB1
Tritanopia (blue-blind)
#00717F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #305db3;
/* rgb */ color: rgb(48, 93, 179);
/* oklch */ color: oklch(49.4% 0.146 261.8);
Tailwind
colors: {
  custom: {
    50: '#7a8aca',
    500: '#305db3',
    950: '#000000',
  },
}
SCSS
$custom: #305db3;
$custom-light: #7a8aca;
$custom-dark: #000000;
JSON
{
  "hex": "#305db3",
  "rgb": {
    "r": 48,
    "g": 93,
    "b": 179
  },
  "hsl": {
    "h": 219.389,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49413,
    "c": 0.14563,
    "h": 261.8
  },
  "luminance": 0.11712
}

Semantic roles & 50–950 ramp

primary
#305DB3
secondary
#C6AB79
accent
#AC47E1
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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