#305EA6#305EA6

#305EA6 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 48.7% C 0.126 H 259.1°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#305EA6
RGBrgb(48, 94, 166)
HSLhsl(217, 55%, 42%)
HSVhsv(217, 71%, 65%)
CMYKcmyk(71.1%, 43.4%, 0%, 34.9%)
CIE-LABlab(40.22, 9.20, -43.42)
CIE-LCHlch(40.22, 44.38, 281.97°)
OKLaboklab(48.74% -0.0239 -0.1241)
OKLCHoklch(48.74% 0.126 259.1)
XYZxyz(12.1021, 11.3857, 37.6289)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305EA6 #A67830
analogous
#3099A6 #305EA6 #3D30A6
triadic
#305EA6 #A6305E #5EA630
tetradic
#305EA6 #A63099 #A67830 #30A63D
square
#305EA6 #A63099 #A67830 #30A63D
split-complementary
#305EA6 #A63D30 #99A630
monochromatic
#152847 #224377 #305EA6 #497BCA #789ED8

Accessibility & contrast

On white

6.41
#305EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #305EA6
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305EA6#FFFFFF#000000##FFFFFF
##305EA61.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B65A9
Deuteranopia (green-blind)
#275AA5
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #305ea6;
/* rgb */ color: rgb(48, 94, 166);
/* oklch */ color: oklch(48.7% 0.126 259.1);
Tailwind
colors: {
  custom: {
    50: '#778bc1',
    500: '#305ea6',
    950: '#000000',
  },
}
SCSS
$custom: #305ea6;
$custom-light: #778bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#305ea6",
  "rgb": {
    "r": 48,
    "g": 94,
    "b": 166
  },
  "hsl": {
    "h": 216.61,
    "s": 55.14,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48742,
    "c": 0.12635,
    "h": 259.1
  },
  "luminance": 0.11387
}

Semantic roles & 50–950 ramp

primary
#305EA6
secondary
#C0A271
accent
#A449DE
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #305EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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