#305DB5#305DB5

#305DB5 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.6% C 0.148 H 262.1°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#305DB5
RGBrgb(48, 93, 181)
HSLhsl(220, 58%, 45%)
HSVhsv(220, 73%, 71%)
CMYKcmyk(73.5%, 48.6%, 0%, 29%)
CIE-LABlab(40.88, 15.50, -51.20)
CIE-LCHlch(40.88, 53.50, 286.84°)
OKLaboklab(49.56% -0.0204 -0.147)
OKLCHoklch(49.56% 0.148 262.1)
XYZxyz(13.4708, 11.7918, 45.2732)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305DB5 #B58830
analogous
#30A0B5 #305DB5 #4530B5
triadic
#305DB5 #B5305D #5DB530
tetradic
#305DB5 #B530A0 #B58830 #30B545
square
#305DB5 #B530A0 #B58830 #30B545
split-complementary
#305DB5 #B54530 #A0B530
monochromatic
#162B54 #234485 #305DB5 #517CD1 #82A1DE

Accessibility & contrast

On white

6.25
#305DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#305DB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305DB5
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305DB5#FFFFFF#000000##FFFFFF
##305DB51.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C67B8
Deuteranopia (green-blind)
#005BB3
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #305db5;
/* rgb */ color: rgb(48, 93, 181);
/* oklch */ color: oklch(49.6% 0.148 262.1);
Tailwind
colors: {
  custom: {
    50: '#7a8acc',
    500: '#305db5',
    950: '#000000',
  },
}
SCSS
$custom: #305db5;
$custom-light: #7a8acc;
$custom-dark: #000000;
JSON
{
  "hex": "#305db5",
  "rgb": {
    "r": 48,
    "g": 93,
    "b": 181
  },
  "hsl": {
    "h": 219.699,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49556,
    "c": 0.1484,
    "h": 262.1
  },
  "luminance": 0.11793
}

Semantic roles & 50–950 ramp

primary
#305DB5
secondary
#C7AD7A
accent
#AD46E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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