#305CA1#305CA1

#305CA1 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.0% C 0.122 H 259.1°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#305CA1
RGBrgb(48, 92, 161)
HSLhsl(217, 54%, 41%)
HSVhsv(217, 70%, 63%)
CMYKcmyk(70.2%, 42.9%, 0%, 36.9%)
CIE-LABlab(39.33, 8.62, -41.86)
CIE-LCHlch(39.33, 42.74, 281.64°)
OKLaboklab(47.96% -0.023 -0.1195)
OKLCHoklch(47.96% 0.122 259.1)
XYZxyz(11.4768, 10.8547, 35.2016)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CA1 #A17530
analogous
#3094A1 #305CA1 #3C30A1
triadic
#305CA1 #A1305C #5CA130
tetradic
#305CA1 #A13094 #A17530 #30A13C
square
#305CA1 #A13094 #A17530 #30A13C
split-complementary
#305CA1 #A13C30 #94A130
monochromatic
#142643 #224172 #305CA1 #4679C8 #759BD6

Accessibility & contrast

On white

6.62
#305CA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#305CA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305CA1
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CA1#FFFFFF#000000##FFFFFF
##305CA11.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B62A4
Deuteranopia (green-blind)
#2958A0
Tritanopia (blue-blind)
#006C76
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #305ca1;
/* rgb */ color: rgb(48, 92, 161);
/* oklch */ color: oklch(48.0% 0.122 259.1);
Tailwind
colors: {
  custom: {
    50: '#7689bd',
    500: '#305ca1',
    950: '#000000',
  },
}
SCSS
$custom: #305ca1;
$custom-light: #7689bd;
$custom-dark: #000000;
JSON
{
  "hex": "#305ca1",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 161
  },
  "hsl": {
    "h": 216.637,
    "s": 54.067,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47958,
    "c": 0.12173,
    "h": 259.1
  },
  "luminance": 0.10856
}

Semantic roles & 50–950 ramp

primary
#305CA1
secondary
#BE9F6F
accent
#A44ADD
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #305CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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