#305FA5#305FA5

#305FA5 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 48.9% C 0.124 H 258.3°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#305FA5
RGBrgb(48, 95, 165)
HSLhsl(216, 55%, 42%)
HSVhsv(216, 71%, 65%)
CMYKcmyk(70.9%, 42.4%, 0%, 35.3%)
CIE-LABlab(40.46, 8.18, -42.45)
CIE-LCHlch(40.46, 43.23, 280.91°)
OKLaboklab(48.9% -0.0251 -0.1212)
OKLCHoklch(48.9% 0.124 258.3)
XYZxyz(12.1002, 11.5281, 37.1775)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FA5 #A57630
analogous
#309AA5 #305FA5 #3B30A5
triadic
#305FA5 #A5305F #5FA530
tetradic
#305FA5 #A5309A #A57630 #30A53B
square
#305FA5 #A5309A #A57630 #30A53B
split-complementary
#305FA5 #A53B30 #9AA530
monochromatic
#142846 #224476 #305FA5 #487CCA #789ED8

Accessibility & contrast

On white

6.35
#305FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#305FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FA5
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FA5#FFFFFF#000000##FFFFFF
##305FA51.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E65A8
Deuteranopia (green-blind)
#2A5AA4
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #305fa5;
/* rgb */ color: rgb(48, 95, 165);
/* oklch */ color: oklch(48.9% 0.124 258.3);
Tailwind
colors: {
  custom: {
    50: '#778bc0',
    500: '#305fa5',
    950: '#000000',
  },
}
SCSS
$custom: #305fa5;
$custom-light: #778bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#305fa5",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 165
  },
  "hsl": {
    "h": 215.897,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48904,
    "c": 0.12379,
    "h": 258.3
  },
  "luminance": 0.11529
}

Semantic roles & 50–950 ramp

primary
#305FA5
secondary
#C0A071
accent
#A34ADE
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #305FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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