#305EAF#305EAF

#305EAF is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.4% C 0.139 H 260.8°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#305EAF
RGBrgb(48, 94, 175)
HSLhsl(218, 57%, 44%)
HSVhsv(218, 73%, 69%)
CMYKcmyk(72.6%, 46.3%, 0%, 31.4%)
CIE-LABlab(40.78, 12.59, -47.84)
CIE-LCHlch(40.78, 49.47, 284.74°)
OKLaboklab(49.35% -0.0222 -0.1371)
OKLCHoklch(49.35% 0.139 260.8)
XYZxyz(12.9567, 11.7275, 42.1299)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305EAF #AF8130
analogous
#309DAF #305EAF #4130AF
triadic
#305EAF #AF305E #5EAF30
tetradic
#305EAF #AF309D #AF8130 #30AF41
square
#305EAF #AF309D #AF8130 #30AF41
split-complementary
#305EAF #AF4130 #9DAF30
monochromatic
#162A4F #23447F #305EAF #4E7CCE #7EA0DC

Accessibility & contrast

On white

6.28
#305EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #305EAF
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305EAF#FFFFFF#000000##FFFFFF
##305EAF1.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3466B2
Deuteranopia (green-blind)
#195BAD
Tritanopia (blue-blind)
#00717E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #305eaf;
/* rgb */ color: rgb(48, 94, 175);
/* oklch */ color: oklch(49.4% 0.139 260.8);
Tailwind
colors: {
  custom: {
    50: '#798bc7',
    500: '#305eaf',
    950: '#000000',
  },
}
SCSS
$custom: #305eaf;
$custom-light: #798bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#305eaf",
  "rgb": {
    "r": 48,
    "g": 94,
    "b": 175
  },
  "hsl": {
    "h": 218.268,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.49352,
    "c": 0.13887,
    "h": 260.8
  },
  "luminance": 0.11729
}

Semantic roles & 50–950 ramp

primary
#305EAF
secondary
#C4A876
accent
#A948E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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