#305BB2#305BB2

#305BB2 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.9% C 0.147 H 262.5°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#305BB2
RGBrgb(48, 91, 178)
HSLhsl(220, 58%, 44%)
HSVhsv(220, 73%, 70%)
CMYKcmyk(73%, 48.9%, 0%, 30.2%)
CIE-LABlab(40.12, 15.67, -50.67)
CIE-LCHlch(40.12, 53.04, 287.19°)
OKLaboklab(48.91% -0.0191 -0.1454)
OKLCHoklch(48.91% 0.147 262.5)
XYZxyz(12.9930, 11.3235, 43.6117)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305BB2 #B28730
analogous
#309CB2 #305BB2 #4630B2
triadic
#305BB2 #B2305B #5BB230
tetradic
#305BB2 #B2309C #B28730 #30B246
square
#305BB2 #B2309C #B28730 #30B246
split-complementary
#305BB2 #B24630 #9CB230
monochromatic
#162A52 #234282 #305BB2 #507AD0 #809EDD

Accessibility & contrast

On white

6.43
#305BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#305BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305BB2
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305BB2#FFFFFF#000000##FFFFFF
##305BB21.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A65B5
Deuteranopia (green-blind)
#0059B0
Tritanopia (blue-blind)
#00707E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #305bb2;
/* rgb */ color: rgb(48, 91, 178);
/* oklch */ color: oklch(48.9% 0.147 262.5);
Tailwind
colors: {
  custom: {
    50: '#7988ca',
    500: '#305bb2',
    950: '#000000',
  },
}
SCSS
$custom: #305bb2;
$custom-light: #7988ca;
$custom-dark: #000000;
JSON
{
  "hex": "#305bb2",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 178
  },
  "hsl": {
    "h": 220.154,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48908,
    "c": 0.1467,
    "h": 262.5
  },
  "luminance": 0.11325
}

Semantic roles & 50–950 ramp

primary
#305BB2
secondary
#C6AC78
accent
#AE47E1
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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