#305EA8#305EA8

#305EA8 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 48.9% C 0.129 H 259.5°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#305EA8
RGBrgb(48, 94, 168)
HSLhsl(217, 56%, 42%)
HSVhsv(217, 71%, 66%)
CMYKcmyk(71.4%, 44%, 0%, 34.1%)
CIE-LABlab(40.34, 9.95, -44.41)
CIE-LCHlch(40.34, 45.51, 282.63°)
OKLaboklab(48.88% -0.0235 -0.127)
OKLCHoklch(48.88% 0.129 259.5)
XYZxyz(12.2870, 11.4596, 38.6026)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305EA8 #A87A30
analogous
#309AA8 #305EA8 #3E30A8
triadic
#305EA8 #A8305E #5EA830
tetradic
#305EA8 #A8309A #A87A30 #30A83E
square
#305EA8 #A8309A #A87A30 #30A83E
split-complementary
#305EA8 #A83E30 #9AA830
monochromatic
#152949 #224378 #305EA8 #4A7CCB #7A9ED9

Accessibility & contrast

On white

6.38
#305EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#305EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305EA8
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305EA8#FFFFFF#000000##FFFFFF
##305EA81.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A65AB
Deuteranopia (green-blind)
#245AA6
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #305ea8;
/* rgb */ color: rgb(48, 94, 168);
/* oklch */ color: oklch(48.9% 0.129 259.5);
Tailwind
colors: {
  custom: {
    50: '#778bc2',
    500: '#305ea8',
    950: '#000000',
  },
}
SCSS
$custom: #305ea8;
$custom-light: #778bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#305ea8",
  "rgb": {
    "r": 48,
    "g": 94,
    "b": 168
  },
  "hsl": {
    "h": 217,
    "s": 55.556,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48875,
    "c": 0.12914,
    "h": 259.5
  },
  "luminance": 0.11461
}

Semantic roles & 50–950 ramp

primary
#305EA8
secondary
#C1A373
accent
#A549DF
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #305EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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