#305EA1#305EA1

#305EA1 is a mid, moderate blue. Relative luminance 0.112; OKLCH L 48.4% C 0.119 H 257.9°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#305EA1
RGBrgb(48, 94, 161)
HSLhsl(216, 54%, 41%)
HSVhsv(216, 70%, 63%)
CMYKcmyk(70.2%, 41.6%, 0%, 36.9%)
CIE-LABlab(39.92, 7.33, -40.92)
CIE-LCHlch(39.92, 41.57, 280.16°)
OKLaboklab(48.42% -0.025 -0.1167)
OKLCHoklch(48.42% 0.119 257.9)
XYZxyz(11.6523, 11.2058, 35.2601)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305EA1 #A17330
analogous
#3096A1 #305EA1 #3A30A1
triadic
#305EA1 #A1305E #5EA130
tetradic
#305EA1 #A13096 #A17330 #30A13A
square
#305EA1 #A13096 #A17330 #30A13A
split-complementary
#305EA1 #A13A30 #96A130
monochromatic
#142743 #224272 #305EA1 #467BC8 #759DD6

Accessibility & contrast

On white

6.48
#305EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#305EA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305EA1
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305EA1#FFFFFF#000000##FFFFFF
##305EA11.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F64A4
Deuteranopia (green-blind)
#2D59A0
Tritanopia (blue-blind)
#006E77
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #305ea1;
/* rgb */ color: rgb(48, 94, 161);
/* oklch */ color: oklch(48.4% 0.119 257.9);
Tailwind
colors: {
  custom: {
    50: '#768bbd',
    500: '#305ea1',
    950: '#000000',
  },
}
SCSS
$custom: #305ea1;
$custom-light: #768bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#305ea1",
  "rgb": {
    "r": 48,
    "g": 94,
    "b": 161
  },
  "hsl": {
    "h": 215.575,
    "s": 54.067,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48415,
    "c": 0.11938,
    "h": 257.9
  },
  "luminance": 0.11207
}

Semantic roles & 50–950 ramp

primary
#305EA1
secondary
#BE9E6F
accent
#A24ADD
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #305EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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