#305DB1#305DB1

#305DB1 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.3% C 0.143 H 261.5°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#305DB1
RGBrgb(48, 93, 177)
HSLhsl(219, 57%, 44%)
HSVhsv(219, 73%, 69%)
CMYKcmyk(72.9%, 47.5%, 0%, 30.6%)
CIE-LABlab(40.62, 13.99, -49.27)
CIE-LCHlch(40.62, 51.22, 285.85°)
OKLaboklab(49.27% -0.021 -0.1413)
OKLCHoklch(49.27% 0.143 261.5)
XYZxyz(13.0662, 11.6300, 43.1426)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305DB1 #B18430
analogous
#309EB1 #305DB1 #4430B1
triadic
#305DB1 #B1305D #5DB130
tetradic
#305DB1 #B1309E #B18430 #30B144
square
#305DB1 #B1309E #B18430 #30B144
split-complementary
#305DB1 #B14430 #9EB130
monochromatic
#162A51 #234481 #305DB1 #4F7CCF #7FA0DC

Accessibility & contrast

On white

6.31
#305DB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #305DB1
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305DB1#FFFFFF#000000##FFFFFF
##305DB11.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3066B4
Deuteranopia (green-blind)
#0F5AAF
Tritanopia (blue-blind)
#00717E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #305db1;
/* rgb */ color: rgb(48, 93, 177);
/* oklch */ color: oklch(49.3% 0.143 261.5);
Tailwind
colors: {
  custom: {
    50: '#798ac9',
    500: '#305db1',
    950: '#000000',
  },
}
SCSS
$custom: #305db1;
$custom-light: #798ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#305db1",
  "rgb": {
    "r": 48,
    "g": 93,
    "b": 177
  },
  "hsl": {
    "h": 219.07,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49272,
    "c": 0.14286,
    "h": 261.5
  },
  "luminance": 0.11631
}

Semantic roles & 50–950 ramp

primary
#305DB1
secondary
#C5AA78
accent
#AB47E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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