#305FAF#305FAF

#305FAF is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.6% C 0.138 H 260.3°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#305FAF
RGBrgb(48, 95, 175)
HSLhsl(218, 57%, 44%)
HSVhsv(218, 73%, 69%)
CMYKcmyk(72.6%, 45.7%, 0%, 31.4%)
CIE-LABlab(41.07, 11.94, -47.38)
CIE-LCHlch(41.07, 48.86, 284.15°)
OKLaboklab(49.57% -0.0231 -0.1357)
OKLCHoklch(49.57% 0.138 260.3)
XYZxyz(13.0462, 11.9065, 42.1598)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FAF #AF8030
analogous
#309EAF #305FAF #4030AF
triadic
#305FAF #AF305F #5FAF30
tetradic
#305FAF #AF309E #AF8030 #30AF40
square
#305FAF #AF309E #AF8030 #30AF40
split-complementary
#305FAF #AF4030 #9EAF30
monochromatic
#162B4F #23457F #305FAF #4E7DCE #7EA1DC

Accessibility & contrast

On white

6.21
#305FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#305FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FAF
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FAF#FFFFFF#000000##FFFFFF
##305FAF1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3667B2
Deuteranopia (green-blind)
#1C5BAD
Tritanopia (blue-blind)
#00727E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #305faf;
/* rgb */ color: rgb(48, 95, 175);
/* oklch */ color: oklch(49.6% 0.138 260.3);
Tailwind
colors: {
  custom: {
    50: '#798bc7',
    500: '#305faf',
    950: '#000000',
  },
}
SCSS
$custom: #305faf;
$custom-light: #798bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#305faf",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 175
  },
  "hsl": {
    "h": 217.795,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.49573,
    "c": 0.13767,
    "h": 260.3
  },
  "luminance": 0.11908
}

Semantic roles & 50–950 ramp

primary
#305FAF
secondary
#C4A876
accent
#A848E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #305FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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