#305AB8#305AB8

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

Color values

HEX#305AB8
RGBrgb(48, 90, 184)
HSLhsl(221, 59%, 45%)
HSVhsv(221, 74%, 72%)
CMYKcmyk(73.9%, 51.1%, 0%, 27.8%)
CIE-LABlab(40.25, 18.59, -53.99)
CIE-LCHlch(40.25, 57.10, 289.00°)
OKLaboklab(49.13% -0.0175 -0.1552)
OKLCHoklch(49.13% 0.156 263.6)
XYZxyz(13.5237, 11.3999, 46.8258)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305AB8 #B88E30
analogous
#309EB8 #305AB8 #4A30B8
triadic
#305AB8 #B8305A #5AB830
tetradic
#305AB8 #B8309E #B88E30 #30B84A
square
#305AB8 #B8309E #B88E30 #30B84A
split-complementary
#305AB8 #B84A30 #9EB830
monochromatic
#172B57 #234287 #305AB8 #537AD2 #84A0DF

Accessibility & contrast

On white

6.40
#305AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#305AB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305AB8
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305AB8#FFFFFF#000000##FFFFFF
##305AB81.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F65BB
Deuteranopia (green-blind)
#0059B6
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #305ab8;
/* rgb */ color: rgb(48, 90, 184);
/* oklch */ color: oklch(49.1% 0.156 263.6);
Tailwind
colors: {
  custom: {
    50: '#7b88ce',
    500: '#305ab8',
    950: '#000000',
  },
}
SCSS
$custom: #305ab8;
$custom-light: #7b88ce;
$custom-dark: #000000;
JSON
{
  "hex": "#305ab8",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 184
  },
  "hsl": {
    "h": 221.471,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49134,
    "c": 0.15622,
    "h": 263.6
  },
  "luminance": 0.11401
}

Semantic roles & 50–950 ramp

primary
#305AB8
secondary
#C8B17C
accent
#B246E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #305AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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