#305CA7#305CA7

#305CA7 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.4% C 0.130 H 260.3°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#305CA7
RGBrgb(48, 92, 167)
HSLhsl(218, 55%, 42%)
HSVhsv(218, 71%, 65%)
CMYKcmyk(71.3%, 44.9%, 0%, 34.5%)
CIE-LABlab(39.70, 10.87, -44.84)
CIE-LCHlch(39.70, 46.14, 283.63°)
OKLaboklab(48.36% -0.0218 -0.1283)
OKLCHoklch(48.36% 0.13 260.3)
XYZxyz(12.0186, 11.0714, 38.0553)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CA7 #A77B30
analogous
#3098A7 #305CA7 #3F30A7
triadic
#305CA7 #A7305C #5CA730
tetradic
#305CA7 #A73098 #A77B30 #30A73F
square
#305CA7 #A73098 #A77B30 #30A73F
split-complementary
#305CA7 #A73F30 #98A730
monochromatic
#152848 #224277 #305CA7 #4979CB #799CD8

Accessibility & contrast

On white

6.53
#305CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #305CA7
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CA7#FFFFFF#000000##FFFFFF
##305CA71.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3763AA
Deuteranopia (green-blind)
#2158A5
Tritanopia (blue-blind)
#006D79
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #305ca7;
/* rgb */ color: rgb(48, 92, 167);
/* oklch */ color: oklch(48.4% 0.130 260.3);
Tailwind
colors: {
  custom: {
    50: '#7789c1',
    500: '#305ca7',
    950: '#000000',
  },
}
SCSS
$custom: #305ca7;
$custom-light: #7789c1;
$custom-dark: #000000;
JSON
{
  "hex": "#305ca7",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 167
  },
  "hsl": {
    "h": 217.815,
    "s": 55.349,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48359,
    "c": 0.13014,
    "h": 260.3
  },
  "luminance": 0.11073
}

Semantic roles & 50–950 ramp

primary
#305CA7
secondary
#C1A472
accent
#A749DF
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #305CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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