#305CAC#305CAC

#305CAC is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.7% C 0.137 H 261.2°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#305CAC
RGBrgb(48, 92, 172)
HSLhsl(219, 56%, 43%)
HSVhsv(219, 72%, 67%)
CMYKcmyk(72.1%, 46.5%, 0%, 32.5%)
CIE-LABlab(40.01, 12.76, -47.30)
CIE-LCHlch(40.01, 48.99, 285.09°)
OKLaboklab(48.7% -0.0209 -0.1355)
OKLCHoklch(48.7% 0.137 261.2)
XYZxyz(12.4898, 11.2599, 40.5369)
Luminance0.1126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CAC #AC8030
analogous
#309AAC #305CAC #4230AC
triadic
#305CAC #AC305C #5CAC30
tetradic
#305CAC #AC309A #AC8030 #30AC42
square
#305CAC #AC309A #AC8030 #30AC42
split-complementary
#305CAC #AC4230 #9AAC30
monochromatic
#15294C #23427C #305CAC #4C7ACD #7C9DDA

Accessibility & contrast

On white

6.46
#305CAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#305CAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305CAC
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CAC#FFFFFF#000000##FFFFFF
##305CAC1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3364AF
Deuteranopia (green-blind)
#1859AA
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #305cac;
/* rgb */ color: rgb(48, 92, 172);
/* oklch */ color: oklch(48.7% 0.137 261.2);
Tailwind
colors: {
  custom: {
    50: '#7889c5',
    500: '#305cac',
    950: '#000000',
  },
}
SCSS
$custom: #305cac;
$custom-light: #7889c5;
$custom-dark: #000000;
JSON
{
  "hex": "#305cac",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 172
  },
  "hsl": {
    "h": 218.71,
    "s": 56.364,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48702,
    "c": 0.13714,
    "h": 261.2
  },
  "luminance": 0.11261
}

Semantic roles & 50–950 ramp

primary
#305CAC
secondary
#C3A775
accent
#AA48E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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