#305AB7#305AB7

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

Color values

HEX#305AB7
RGBrgb(48, 90, 183)
HSLhsl(221, 58%, 45%)
HSVhsv(221, 74%, 72%)
CMYKcmyk(73.8%, 50.8%, 0%, 28.2%)
CIE-LABlab(40.18, 18.21, -53.51)
CIE-LCHlch(40.18, 56.53, 288.80°)
OKLaboklab(49.06% -0.0176 -0.1538)
OKLCHoklch(49.06% 0.155 263.5)
XYZxyz(13.4193, 11.3581, 46.2757)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305AB7 #B78D30
analogous
#309EB7 #305AB7 #4930B7
triadic
#305AB7 #B7305A #5AB730
tetradic
#305AB7 #B7309E #B78D30 #30B749
square
#305AB7 #B7309E #B78D30 #30B749
split-complementary
#305AB7 #B74930 #9EB730
monochromatic
#172A56 #234287 #305AB7 #527AD2 #839FDE

Accessibility & contrast

On white

6.42
#305AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #305AB7
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305AB7#FFFFFF#000000##FFFFFF
##305AB71.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2165BA
Deuteranopia (green-blind)
#0059B5
Tritanopia (blue-blind)
#007080
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #305ab7;
/* rgb */ color: rgb(48, 90, 183);
/* oklch */ color: oklch(49.1% 0.155 263.5);
Tailwind
colors: {
  custom: {
    50: '#7b88cd',
    500: '#305ab7',
    950: '#000000',
  },
}
SCSS
$custom: #305ab7;
$custom-light: #7b88cd;
$custom-dark: #000000;
JSON
{
  "hex": "#305ab7",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 183
  },
  "hsl": {
    "h": 221.333,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4906,
    "c": 0.15484,
    "h": 263.5
  },
  "luminance": 0.1136
}

Semantic roles & 50–950 ramp

primary
#305AB7
secondary
#C8B07B
accent
#B146E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #305AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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