#305AB2#305AB2

#305AB2 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.7% C 0.148 H 262.9°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#305AB2
RGBrgb(48, 90, 178)
HSLhsl(221, 58%, 44%)
HSVhsv(221, 73%, 70%)
CMYKcmyk(73%, 49.4%, 0%, 30.2%)
CIE-LABlab(39.84, 16.33, -51.12)
CIE-LCHlch(39.84, 53.67, 287.71°)
OKLaboklab(48.69% -0.0182 -0.1468)
OKLCHoklch(48.69% 0.148 262.9)
XYZxyz(12.9081, 11.1537, 43.5834)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305AB2 #B28830
analogous
#309BB2 #305AB2 #4730B2
triadic
#305AB2 #B2305A #5AB230
tetradic
#305AB2 #B2309B #B28830 #30B247
square
#305AB2 #B2309B #B28830 #30B247
split-complementary
#305AB2 #B24730 #9BB230
monochromatic
#162952 #234282 #305AB2 #5079D0 #809EDD

Accessibility & contrast

On white

6.50
#305AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#305AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305AB2
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305AB2#FFFFFF#000000##FFFFFF
##305AB21.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2864B5
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#006F7D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #305ab2;
/* rgb */ color: rgb(48, 90, 178);
/* oklch */ color: oklch(48.7% 0.148 262.9);
Tailwind
colors: {
  custom: {
    50: '#7988ca',
    500: '#305ab2',
    950: '#000000',
  },
}
SCSS
$custom: #305ab2;
$custom-light: #7988ca;
$custom-dark: #000000;
JSON
{
  "hex": "#305ab2",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 178
  },
  "hsl": {
    "h": 220.615,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48692,
    "c": 0.14794,
    "h": 262.9
  },
  "luminance": 0.11155
}

Semantic roles & 50–950 ramp

primary
#305AB2
secondary
#C6AD78
accent
#AF47E1
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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