#305FA4#305FA4

#305FA4 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 48.8% C 0.122 H 258.1°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#305FA4
RGBrgb(48, 95, 164)
HSLhsl(216, 55%, 42%)
HSVhsv(216, 71%, 64%)
CMYKcmyk(70.7%, 42.1%, 0%, 35.7%)
CIE-LABlab(40.40, 7.81, -41.95)
CIE-LCHlch(40.40, 42.67, 280.54°)
OKLaboklab(48.84% -0.0253 -0.1197)
OKLCHoklch(48.84% 0.122 258.1)
XYZxyz(12.0095, 11.4919, 36.7000)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FA4 #A47530
analogous
#3099A4 #305FA4 #3B30A4
triadic
#305FA4 #A4305F #5FA430
tetradic
#305FA4 #A43099 #A47530 #30A43B
square
#305FA4 #A43099 #A47530 #30A43B
split-complementary
#305FA4 #A43B30 #99A430
monochromatic
#142845 #224475 #305FA4 #487CC9 #779ED7

Accessibility & contrast

On white

6.37
#305FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#305FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FA4
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FA4#FFFFFF#000000##FFFFFF
##305FA41.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E65A7
Deuteranopia (green-blind)
#2C5AA3
Tritanopia (blue-blind)
#006F79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #305fa4;
/* rgb */ color: rgb(48, 95, 164);
/* oklch */ color: oklch(48.8% 0.122 258.1);
Tailwind
colors: {
  custom: {
    50: '#768bbf',
    500: '#305fa4',
    950: '#000000',
  },
}
SCSS
$custom: #305fa4;
$custom-light: #768bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#305fa4",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 164
  },
  "hsl": {
    "h": 215.69,
    "s": 54.717,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48838,
    "c": 0.1224,
    "h": 258.1
  },
  "luminance": 0.11493
}

Semantic roles & 50–950 ramp

primary
#305FA4
secondary
#BF9F70
accent
#A24ADE
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #305FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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