#305FC7#305FC7

#305FC7 is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.3% C 0.170 H 263.3°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#305FC7
RGBrgb(48, 95, 199)
HSLhsl(221, 61%, 48%)
HSVhsv(221, 76%, 78%)
CMYKcmyk(75.9%, 52.3%, 0%, 22%)
CIE-LABlab(42.66, 20.99, -58.80)
CIE-LCHlch(42.66, 62.44, 289.64°)
OKLaboklab(51.31% -0.0198 -0.1693)
OKLCHoklch(51.31% 0.17 263.3)
XYZxyz(15.6163, 12.9346, 55.6953)
Luminance0.1294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FC7 #C79830
analogous
#30AAC7 #305FC7 #4D30C7
triadic
#305FC7 #C7305F #5FC730
tetradic
#305FC7 #C730AA #C79830 #30C74D
square
#305FC7 #C730AA #C79830 #30C74D
split-complementary
#305FC7 #C74D30 #AAC730
monochromatic
#183064 #244796 #305FC7 #5C83D8 #8EA8E4

Accessibility & contrast

On white

5.85
#305FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#305FC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FC7
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FC7#FFFFFF#000000##FFFFFF
##305FC71.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166CCB
Deuteranopia (green-blind)
#005EC5
Tritanopia (blue-blind)
#00788A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #305fc7;
/* rgb */ color: rgb(48, 95, 199);
/* oklch */ color: oklch(51.3% 0.170 263.3);
Tailwind
colors: {
  custom: {
    50: '#7e8bd9',
    500: '#305fc7',
    950: '#000000',
  },
}
SCSS
$custom: #305fc7;
$custom-light: #7e8bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#305fc7",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 199
  },
  "hsl": {
    "h": 221.325,
    "s": 61.134,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51306,
    "c": 0.17047,
    "h": 263.3
  },
  "luminance": 0.12936
}

Semantic roles & 50–950 ramp

primary
#305FC7
secondary
#CEB785
accent
#B244E4
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0B0C15
muted
#7C7D83

Preview Lab

Preview with #305FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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