#305EA7#305EA7

#305EA7 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 48.8% C 0.128 H 259.3°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#305EA7
RGBrgb(48, 94, 167)
HSLhsl(217, 55%, 42%)
HSVhsv(217, 71%, 65%)
CMYKcmyk(71.3%, 43.7%, 0%, 34.5%)
CIE-LABlab(40.28, 9.58, -43.91)
CIE-LCHlch(40.28, 44.94, 282.31°)
OKLaboklab(48.81% -0.0237 -0.1255)
OKLCHoklch(48.81% 0.128 259.3)
XYZxyz(12.1942, 11.4225, 38.1138)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305EA7 #A77930
analogous
#309AA7 #305EA7 #3E30A7
triadic
#305EA7 #A7305E #5EA730
tetradic
#305EA7 #A7309A #A77930 #30A73E
square
#305EA7 #A7309A #A77930 #30A73E
split-complementary
#305EA7 #A73E30 #9AA730
monochromatic
#152848 #224377 #305EA7 #497BCB #799ED8

Accessibility & contrast

On white

6.39
#305EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#305EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305EA7
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305EA7#FFFFFF#000000##FFFFFF
##305EA71.006.393.286.39
#FFFFFF6.391.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B65AA
Deuteranopia (green-blind)
#265AA6
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #305ea7;
/* rgb */ color: rgb(48, 94, 167);
/* oklch */ color: oklch(48.8% 0.128 259.3);
Tailwind
colors: {
  custom: {
    50: '#778bc1',
    500: '#305ea7',
    950: '#000000',
  },
}
SCSS
$custom: #305ea7;
$custom-light: #778bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#305ea7",
  "rgb": {
    "r": 48,
    "g": 94,
    "b": 167
  },
  "hsl": {
    "h": 216.807,
    "s": 55.349,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48809,
    "c": 0.12775,
    "h": 259.3
  },
  "luminance": 0.11424
}

Semantic roles & 50–950 ramp

primary
#305EA7
secondary
#C1A272
accent
#A549DF
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #305EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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