#305CA8#305CA8

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

Color values

HEX#305CA8
RGBrgb(48, 92, 168)
HSLhsl(218, 56%, 42%)
HSVhsv(218, 71%, 66%)
CMYKcmyk(71.4%, 45.2%, 0%, 34.1%)
CIE-LABlab(39.76, 11.25, -45.34)
CIE-LCHlch(39.76, 46.71, 283.94°)
OKLaboklab(48.43% -0.0216 -0.1297)
OKLCHoklch(48.43% 0.132 260.5)
XYZxyz(12.1114, 11.1085, 38.5441)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CA8 #A87C30
analogous
#3098A8 #305CA8 #4030A8
triadic
#305CA8 #A8305C #5CA830
tetradic
#305CA8 #A83098 #A87C30 #30A840
square
#305CA8 #A83098 #A87C30 #30A840
split-complementary
#305CA8 #A84030 #98A830
monochromatic
#152849 #224278 #305CA8 #4A79CB #7A9CD9

Accessibility & contrast

On white

6.52
#305CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#305CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305CA8
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CA8#FFFFFF#000000##FFFFFF
##305CA81.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3664AB
Deuteranopia (green-blind)
#1F59A6
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #305ca8;
/* rgb */ color: rgb(48, 92, 168);
/* oklch */ color: oklch(48.4% 0.132 260.5);
Tailwind
colors: {
  custom: {
    50: '#7789c2',
    500: '#305ca8',
    950: '#000000',
  },
}
SCSS
$custom: #305ca8;
$custom-light: #7789c2;
$custom-dark: #000000;
JSON
{
  "hex": "#305ca8",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 168
  },
  "hsl": {
    "h": 218,
    "s": 55.556,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48427,
    "c": 0.13154,
    "h": 260.5
  },
  "luminance": 0.1111
}

Semantic roles & 50–950 ramp

primary
#305CA8
secondary
#C1A473
accent
#A849DF
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #305CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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