#305FC9#305FC9

#305FC9 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.5% C 0.173 H 263.5°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#305FC9
RGBrgb(48, 95, 201)
HSLhsl(222, 61%, 49%)
HSVhsv(222, 76%, 79%)
CMYKcmyk(76.1%, 52.7%, 0%, 21.2%)
CIE-LABlab(42.81, 21.74, -59.73)
CIE-LCHlch(42.81, 63.56, 290.00°)
OKLaboklab(51.46% -0.0196 -0.172)
OKLCHoklch(51.46% 0.173 263.5)
XYZxyz(15.8500, 13.0281, 56.9263)
Luminance0.1303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FC9 #C99A30
analogous
#30ACC9 #305FC9 #4E30C9
triadic
#305FC9 #C9305F #5FC930
tetradic
#305FC9 #C930AC #C99A30 #30C94E
square
#305FC9 #C930AC #C99A30 #30C94E
split-complementary
#305FC9 #C94E30 #ACC930
monochromatic
#183066 #244898 #305FC9 #5E83D8 #8FA9E4

Accessibility & contrast

On white

5.82
#305FC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#305FC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FC9
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FC9#FFFFFF#000000##FFFFFF
##305FC91.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#106CCD
Deuteranopia (green-blind)
#005EC7
Tritanopia (blue-blind)
#00798B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #305fc9;
/* rgb */ color: rgb(48, 95, 201);
/* oklch */ color: oklch(51.5% 0.173 263.5);
Tailwind
colors: {
  custom: {
    50: '#7e8bda',
    500: '#305fc9',
    950: '#000000',
  },
}
SCSS
$custom: #305fc9;
$custom-light: #7e8bda;
$custom-dark: #000000;
JSON
{
  "hex": "#305fc9",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 201
  },
  "hsl": {
    "h": 221.569,
    "s": 61.446,
    "l": 48.824
  },
  "oklch": {
    "l": 0.51457,
    "c": 0.17316,
    "h": 263.5
  },
  "luminance": 0.1303
}

Semantic roles & 50–950 ramp

primary
#305FC9
secondary
#CFB886
accent
#B343E5
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0B0C15
muted
#7C7D83

Preview Lab

Preview with #305FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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