#305A9C#305A9C

#305A9C is a mid, moderate blue. Relative luminance 0.103; OKLCH L 47.2% C 0.117 H 259.1°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#305A9C
RGBrgb(48, 90, 156)
HSLhsl(217, 53%, 40%)
HSVhsv(217, 69%, 61%)
CMYKcmyk(69.2%, 42.3%, 0%, 38.8%)
CIE-LABlab(38.45, 8.05, -40.29)
CIE-LCHlch(38.45, 41.09, 281.29°)
OKLaboklab(47.17% -0.0221 -0.115)
OKLCHoklch(47.17% 0.117 259.1)
XYZxyz(10.8737, 10.3399, 32.8688)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305A9C #9C7230
analogous
#30909C #305A9C #3C309C
triadic
#305A9C #9C305A #5A9C30
tetradic
#305A9C #9C3090 #9C7230 #309C3C
square
#305A9C #9C3090 #9C7230 #309C3C
split-complementary
#305A9C #9C3C30 #909C30
monochromatic
#13243E #223F6D #305A9C #4476C5 #7398D4

Accessibility & contrast

On white

6.84
#305A9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#305A9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305A9C
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305A9C#FFFFFF#000000##FFFFFF
##305A9C1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B609F
Deuteranopia (green-blind)
#2A569B
Tritanopia (blue-blind)
#006973
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #305a9c;
/* rgb */ color: rgb(48, 90, 156);
/* oklch */ color: oklch(47.2% 0.117 259.1);
Tailwind
colors: {
  custom: {
    50: '#7588b9',
    500: '#305a9c',
    950: '#000000',
  },
}
SCSS
$custom: #305a9c;
$custom-light: #7588b9;
$custom-dark: #000000;
JSON
{
  "hex": "#305a9c",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 156
  },
  "hsl": {
    "h": 216.667,
    "s": 52.941,
    "l": 40
  },
  "oklch": {
    "l": 0.47173,
    "c": 0.11706,
    "h": 259.1
  },
  "luminance": 0.10341
}

Semantic roles & 50–950 ramp

primary
#305A9C
secondary
#BC9D6C
accent
#A44BDC
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #305A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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