#305BB5#305BB5

#305BB5 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.1% C 0.151 H 262.9°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#305BB5
RGBrgb(48, 91, 181)
HSLhsl(221, 58%, 45%)
HSVhsv(221, 73%, 71%)
CMYKcmyk(73.5%, 49.7%, 0%, 29%)
CIE-LABlab(40.32, 16.80, -52.11)
CIE-LCHlch(40.32, 54.75, 287.87°)
OKLaboklab(49.13% -0.0187 -0.1497)
OKLCHoklch(49.13% 0.151 262.9)
XYZxyz(13.2975, 11.4453, 45.2155)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305BB5 #B58A30
analogous
#309DB5 #305BB5 #4830B5
triadic
#305BB5 #B5305B #5BB530
tetradic
#305BB5 #B5309D #B58A30 #30B548
square
#305BB5 #B5309D #B58A30 #30B548
split-complementary
#305BB5 #B54830 #9DB530
monochromatic
#162A54 #234385 #305BB5 #517BD1 #829FDE

Accessibility & contrast

On white

6.38
#305BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#305BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305BB5
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305BB5#FFFFFF#000000##FFFFFF
##305BB51.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2765B8
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #305bb5;
/* rgb */ color: rgb(48, 91, 181);
/* oklch */ color: oklch(49.1% 0.151 262.9);
Tailwind
colors: {
  custom: {
    50: '#7a88cc',
    500: '#305bb5',
    950: '#000000',
  },
}
SCSS
$custom: #305bb5;
$custom-light: #7a88cc;
$custom-dark: #000000;
JSON
{
  "hex": "#305bb5",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 181
  },
  "hsl": {
    "h": 220.602,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49125,
    "c": 0.15085,
    "h": 262.9
  },
  "luminance": 0.11447
}

Semantic roles & 50–950 ramp

primary
#305BB5
secondary
#C7AE7A
accent
#AF46E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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