#305CA6#305CA6

#305CA6 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.3% C 0.129 H 260.2°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#305CA6
RGBrgb(48, 92, 166)
HSLhsl(218, 55%, 42%)
HSVhsv(218, 71%, 65%)
CMYKcmyk(71.1%, 44.6%, 0%, 34.9%)
CIE-LABlab(39.64, 10.50, -44.35)
CIE-LCHlch(39.64, 45.58, 283.32°)
OKLaboklab(48.29% -0.022 -0.1268)
OKLCHoklch(48.29% 0.129 260.2)
XYZxyz(11.9265, 11.0346, 37.5703)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CA6 #A67A30
analogous
#3097A6 #305CA6 #3F30A6
triadic
#305CA6 #A6305C #5CA630
tetradic
#305CA6 #A63097 #A67A30 #30A63F
square
#305CA6 #A63097 #A67A30 #30A63F
split-complementary
#305CA6 #A63F30 #97A630
monochromatic
#152747 #224277 #305CA6 #4979CA #789CD8

Accessibility & contrast

On white

6.55
#305CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#305CA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305CA6
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CA6#FFFFFF#000000##FFFFFF
##305CA61.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3863A9
Deuteranopia (green-blind)
#2258A4
Tritanopia (blue-blind)
#006D79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #305ca6;
/* rgb */ color: rgb(48, 92, 166);
/* oklch */ color: oklch(48.3% 0.129 260.2);
Tailwind
colors: {
  custom: {
    50: '#7789c1',
    500: '#305ca6',
    950: '#000000',
  },
}
SCSS
$custom: #305ca6;
$custom-light: #7789c1;
$custom-dark: #000000;
JSON
{
  "hex": "#305ca6",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 166
  },
  "hsl": {
    "h": 217.627,
    "s": 55.14,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48291,
    "c": 0.12875,
    "h": 260.2
  },
  "luminance": 0.11036
}

Semantic roles & 50–950 ramp

primary
#305CA6
secondary
#C0A371
accent
#A749DE
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #305CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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