#305FA1#305FA1

#305FA1 is a mid, moderate blue. Relative luminance 0.114; OKLCH L 48.6% C 0.118 H 257.3°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#305FA1
RGBrgb(48, 95, 161)
HSLhsl(215, 54%, 41%)
HSVhsv(215, 70%, 63%)
CMYKcmyk(70.2%, 41%, 0%, 36.9%)
CIE-LABlab(40.22, 6.69, -40.45)
CIE-LCHlch(40.22, 41.00, 279.39°)
OKLaboklab(48.65% -0.026 -0.1153)
OKLCHoklch(48.65% 0.118 257.3)
XYZxyz(11.7418, 11.3848, 35.2900)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FA1 #A17230
analogous
#3097A1 #305FA1 #3930A1
triadic
#305FA1 #A1305F #5FA130
tetradic
#305FA1 #A13097 #A17230 #30A139
square
#305FA1 #A13097 #A17230 #30A139
split-complementary
#305FA1 #A13930 #97A130
monochromatic
#142743 #224372 #305FA1 #467CC8 #759ED6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##305FA1#FFFFFF#000000##FFFFFF
##305FA11.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)
#4064A4
Deuteranopia (green-blind)
#2F5AA0
Tritanopia (blue-blind)
#006E78
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #305fa1;
/* rgb */ color: rgb(48, 95, 161);
/* oklch */ color: oklch(48.6% 0.118 257.3);
Tailwind
colors: {
  custom: {
    50: '#768cbd',
    500: '#305fa1',
    950: '#000000',
  },
}
SCSS
$custom: #305fa1;
$custom-light: #768cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#305fa1",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 161
  },
  "hsl": {
    "h": 215.044,
    "s": 54.067,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48645,
    "c": 0.11823,
    "h": 257.3
  },
  "luminance": 0.11386
}

Semantic roles & 50–950 ramp

primary
#305FA1
secondary
#BE9D6F
accent
#A04ADD
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090C12
muted
#7B7D81

Preview Lab

Preview with #305FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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