#305EA5#305EA5

#305EA5 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 48.7% C 0.125 H 258.9°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#305EA5
RGBrgb(48, 94, 165)
HSLhsl(216, 55%, 42%)
HSVhsv(216, 71%, 65%)
CMYKcmyk(70.9%, 43%, 0%, 35.3%)
CIE-LABlab(40.16, 8.83, -42.92)
CIE-LCHlch(40.16, 43.82, 281.62°)
OKLaboklab(48.68% -0.0241 -0.1226)
OKLCHoklch(48.68% 0.125 258.9)
XYZxyz(12.0107, 11.3491, 37.1476)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305EA5 #A57730
analogous
#3099A5 #305EA5 #3C30A5
triadic
#305EA5 #A5305E #5EA530
tetradic
#305EA5 #A53099 #A57730 #30A53C
square
#305EA5 #A53099 #A57730 #30A53C
split-complementary
#305EA5 #A53C30 #99A530
monochromatic
#142846 #224376 #305EA5 #487BCA #789DD8

Accessibility & contrast

On white

6.42
#305EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#305EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305EA5
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305EA5#FFFFFF#000000##FFFFFF
##305EA51.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C64A8
Deuteranopia (green-blind)
#285AA4
Tritanopia (blue-blind)
#006E79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #305ea5;
/* rgb */ color: rgb(48, 94, 165);
/* oklch */ color: oklch(48.7% 0.125 258.9);
Tailwind
colors: {
  custom: {
    50: '#778bc0',
    500: '#305ea5',
    950: '#000000',
  },
}
SCSS
$custom: #305ea5;
$custom-light: #778bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#305ea5",
  "rgb": {
    "r": 48,
    "g": 94,
    "b": 165
  },
  "hsl": {
    "h": 216.41,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48676,
    "c": 0.12496,
    "h": 258.9
  },
  "luminance": 0.1135
}

Semantic roles & 50–950 ramp

primary
#305EA5
secondary
#C0A171
accent
#A44ADE
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #305EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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