#305DC7#305DC7

#305DC7 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.9% C 0.173 H 263.9°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#305DC7
RGBrgb(48, 93, 199)
HSLhsl(222, 61%, 48%)
HSVhsv(222, 76%, 78%)
CMYKcmyk(75.9%, 53.3%, 0%, 22%)
CIE-LABlab(42.12, 22.28, -59.68)
CIE-LCHlch(42.12, 63.71, 290.47°)
OKLaboklab(50.89% -0.0183 -0.1719)
OKLCHoklch(50.89% 0.173 263.9)
XYZxyz(15.4384, 12.5789, 55.6361)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305DC7 #C79A30
analogous
#30A8C7 #305DC7 #4E30C7
triadic
#305DC7 #C7305D #5DC730
tetradic
#305DC7 #C730A8 #C79A30 #30C74E
square
#305DC7 #C730A8 #C79A30 #30C74E
split-complementary
#305DC7 #C74E30 #A8C730
monochromatic
#182F64 #244696 #305DC7 #5C81D8 #8EA7E4

Accessibility & contrast

On white

5.97
#305DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#305DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305DC7
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305DC7#FFFFFF#000000##FFFFFF
##305DC71.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#096BCB
Deuteranopia (green-blind)
#005DC5
Tritanopia (blue-blind)
#007789
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #305dc7;
/* rgb */ color: rgb(48, 93, 199);
/* oklch */ color: oklch(50.9% 0.173 263.9);
Tailwind
colors: {
  custom: {
    50: '#7e8ad9',
    500: '#305dc7',
    950: '#000000',
  },
}
SCSS
$custom: #305dc7;
$custom-light: #7e8ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#305dc7",
  "rgb": {
    "r": 48,
    "g": 93,
    "b": 199
  },
  "hsl": {
    "h": 222.119,
    "s": 61.134,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50894,
    "c": 0.17291,
    "h": 263.9
  },
  "luminance": 0.12581
}

Semantic roles & 50–950 ramp

primary
#305DC7
secondary
#CEB885
accent
#B444E4
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #305DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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