#305CA5#305CA5

#305CA5 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.2% C 0.127 H 260.0°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#305CA5
RGBrgb(48, 92, 165)
HSLhsl(217, 55%, 42%)
HSVhsv(217, 71%, 65%)
CMYKcmyk(70.9%, 44.2%, 0%, 35.3%)
CIE-LABlab(39.58, 10.12, -43.85)
CIE-LCHlch(39.58, 45.01, 283.00°)
OKLaboklab(48.22% -0.0222 -0.1254)
OKLCHoklch(48.22% 0.127 260)
XYZxyz(11.8352, 10.9980, 37.0891)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CA5 #A57930
analogous
#3097A5 #305CA5 #3F30A5
triadic
#305CA5 #A5305C #5CA530
tetradic
#305CA5 #A53097 #A57930 #30A53F
square
#305CA5 #A53097 #A57930 #30A53F
split-complementary
#305CA5 #A53F30 #97A530
monochromatic
#142746 #224276 #305CA5 #4879CA #789CD8

Accessibility & contrast

On white

6.56
#305CA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#305CA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305CA5
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CA5#FFFFFF#000000##FFFFFF
##305CA51.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3863A8
Deuteranopia (green-blind)
#2358A4
Tritanopia (blue-blind)
#006D78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #305ca5;
/* rgb */ color: rgb(48, 92, 165);
/* oklch */ color: oklch(48.2% 0.127 260.0);
Tailwind
colors: {
  custom: {
    50: '#7789c0',
    500: '#305ca5',
    950: '#000000',
  },
}
SCSS
$custom: #305ca5;
$custom-light: #7789c0;
$custom-dark: #000000;
JSON
{
  "hex": "#305ca5",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 165
  },
  "hsl": {
    "h": 217.436,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48224,
    "c": 0.12734,
    "h": 260
  },
  "luminance": 0.10999
}

Semantic roles & 50–950 ramp

primary
#305CA5
secondary
#C0A271
accent
#A64ADE
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #305CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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