#305FA9#305FA9

#305FA9 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.2% C 0.129 H 259.2°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#305FA9
RGBrgb(48, 95, 169)
HSLhsl(217, 56%, 43%)
HSVhsv(217, 72%, 66%)
CMYKcmyk(71.6%, 43.8%, 0%, 33.7%)
CIE-LABlab(40.70, 9.68, -44.43)
CIE-LCHlch(40.70, 45.48, 282.30°)
OKLaboklab(49.17% -0.0243 -0.127)
OKLCHoklch(49.17% 0.129 259.2)
XYZxyz(12.4700, 11.6760, 39.1249)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FA9 #A97A30
analogous
#309CA9 #305FA9 #3D30A9
triadic
#305FA9 #A9305F #5FA930
tetradic
#305FA9 #A9309C #A97A30 #30A93D
square
#305FA9 #A9309C #A97A30 #30A93D
split-complementary
#305FA9 #A93D30 #9CA930
monochromatic
#15294A #224479 #305FA9 #4A7DCC #7A9FD9

Accessibility & contrast

On white

6.30
#305FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#305FA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FA9
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FA9#FFFFFF#000000##FFFFFF
##305FA91.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B66AC
Deuteranopia (green-blind)
#255BA7
Tritanopia (blue-blind)
#00707C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #305fa9;
/* rgb */ color: rgb(48, 95, 169);
/* oklch */ color: oklch(49.2% 0.129 259.2);
Tailwind
colors: {
  custom: {
    50: '#778bc3',
    500: '#305fa9',
    950: '#000000',
  },
}
SCSS
$custom: #305fa9;
$custom-light: #778bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#305fa9",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 169
  },
  "hsl": {
    "h": 216.694,
    "s": 55.76,
    "l": 42.549
  },
  "oklch": {
    "l": 0.49167,
    "c": 0.12935,
    "h": 259.2
  },
  "luminance": 0.11677
}

Semantic roles & 50–950 ramp

primary
#305FA9
secondary
#C2A373
accent
#A549DF
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #305FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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