#305FA3#305FA3

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

Color values

HEX#305FA3
RGBrgb(48, 95, 163)
HSLhsl(215, 55%, 41%)
HSVhsv(215, 71%, 64%)
CMYKcmyk(70.6%, 41.7%, 0%, 36.1%)
CIE-LABlab(40.34, 7.44, -41.45)
CIE-LCHlch(40.34, 42.11, 280.17°)
OKLaboklab(48.77% -0.0255 -0.1183)
OKLCHoklch(48.77% 0.121 257.8)
XYZxyz(11.9196, 11.4559, 36.2263)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FA3 #A37430
analogous
#3099A3 #305FA3 #3B30A3
triadic
#305FA3 #A3305F #5FA330
tetradic
#305FA3 #A33099 #A37430 #30A33B
square
#305FA3 #A33099 #A37430 #30A33B
split-complementary
#305FA3 #A33B30 #99A330
monochromatic
#142844 #224374 #305FA3 #477CC9 #779ED7

Accessibility & contrast

On white

6.38
#305FA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#305FA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FA3
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FA3#FFFFFF#000000##FFFFFF
##305FA31.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #305fa3;
/* rgb */ color: rgb(48, 95, 163);
/* oklch */ color: oklch(48.8% 0.121 257.8);
Tailwind
colors: {
  custom: {
    50: '#768bbf',
    500: '#305fa3',
    950: '#000000',
  },
}
SCSS
$custom: #305fa3;
$custom-light: #768bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#305fa3",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 163
  },
  "hsl": {
    "h": 215.478,
    "s": 54.502,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48774,
    "c": 0.12101,
    "h": 257.8
  },
  "luminance": 0.11457
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #305FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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