#305BA2#305BA2

#305BA2 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 47.8% C 0.124 H 259.9°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#305BA2
RGBrgb(48, 91, 162)
HSLhsl(217, 54%, 41%)
HSVhsv(217, 70%, 64%)
CMYKcmyk(70.4%, 43.8%, 0%, 36.5%)
CIE-LABlab(39.10, 9.64, -42.83)
CIE-LCHlch(39.10, 43.90, 282.69°)
OKLaboklab(47.8% -0.0218 -0.1224)
OKLCHoklch(47.8% 0.124 259.9)
XYZxyz(11.4793, 10.7180, 35.6392)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305BA2 #A27730
analogous
#3094A2 #305BA2 #3E30A2
triadic
#305BA2 #A2305B #5BA230
tetradic
#305BA2 #A23094 #A27730 #30A23E
square
#305BA2 #A23094 #A27730 #30A23E
split-complementary
#305BA2 #A23E30 #94A230
monochromatic
#142644 #224073 #305BA2 #4778C8 #769AD6

Accessibility & contrast

On white

6.68
#305BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#305BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305BA2
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305BA2#FFFFFF#000000##FFFFFF
##305BA21.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3962A5
Deuteranopia (green-blind)
#2557A1
Tritanopia (blue-blind)
#006B76
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #305ba2;
/* rgb */ color: rgb(48, 91, 162);
/* oklch */ color: oklch(47.8% 0.124 259.9);
Tailwind
colors: {
  custom: {
    50: '#7688be',
    500: '#305ba2',
    950: '#000000',
  },
}
SCSS
$custom: #305ba2;
$custom-light: #7688be;
$custom-dark: #000000;
JSON
{
  "hex": "#305ba2",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 162
  },
  "hsl": {
    "h": 217.368,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47797,
    "c": 0.12433,
    "h": 259.9
  },
  "luminance": 0.10719
}

Semantic roles & 50–950 ramp

primary
#305BA2
secondary
#BEA16F
accent
#A64ADE
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #305BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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