#305FAB#305FAB

#305FAB is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.3% C 0.132 H 259.6°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#305FAB
RGBrgb(48, 95, 171)
HSLhsl(217, 56%, 43%)
HSVhsv(217, 72%, 67%)
CMYKcmyk(71.9%, 44.4%, 0%, 32.9%)
CIE-LABlab(40.82, 10.44, -45.42)
CIE-LCHlch(40.82, 46.60, 282.94°)
OKLaboklab(49.3% -0.0239 -0.1299)
OKLCHoklch(49.3% 0.132 259.6)
XYZxyz(12.6592, 11.7517, 40.1213)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FAB #AB7C30
analogous
#309CAB #305FAB #3E30AB
triadic
#305FAB #AB305F #5FAB30
tetradic
#305FAB #AB309C #AB7C30 #30AB3E
square
#305FAB #AB309C #AB7C30 #30AB3E
split-complementary
#305FAB #AB3E30 #9CAB30
monochromatic
#152A4B #23447B #305FAB #4C7DCD #7BA0DA

Accessibility & contrast

On white

6.27
#305FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#305FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FAB
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FAB#FFFFFF#000000##FFFFFF
##305FAB1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3966AE
Deuteranopia (green-blind)
#235BA9
Tritanopia (blue-blind)
#00717C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #305fab;
/* rgb */ color: rgb(48, 95, 171);
/* oklch */ color: oklch(49.3% 0.132 259.6);
Tailwind
colors: {
  custom: {
    50: '#788bc4',
    500: '#305fab',
    950: '#000000',
  },
}
SCSS
$custom: #305fab;
$custom-light: #788bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#305fab",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 171
  },
  "hsl": {
    "h": 217.073,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.49301,
    "c": 0.13213,
    "h": 259.6
  },
  "luminance": 0.11753
}

Semantic roles & 50–950 ramp

primary
#305FAB
secondary
#C3A574
accent
#A648DF
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #305FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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