#305DC4#305DC4

#305DC4 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.7% C 0.169 H 263.7°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#305DC4
RGBrgb(48, 93, 196)
HSLhsl(222, 61%, 48%)
HSVhsv(222, 76%, 77%)
CMYKcmyk(75.5%, 52.6%, 0%, 23.1%)
CIE-LABlab(41.91, 21.16, -58.29)
CIE-LCHlch(41.91, 62.01, 289.95°)
OKLaboklab(50.66% -0.0186 -0.1678)
OKLCHoklch(50.66% 0.169 263.7)
XYZxyz(15.0935, 12.4409, 53.8197)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305DC4 #C49730
analogous
#30A7C4 #305DC4 #4D30C4
triadic
#305DC4 #C4305D #5DC430
tetradic
#305DC4 #C430A7 #C49730 #30C44D
square
#305DC4 #C430A7 #C49730 #30C44D
split-complementary
#305DC4 #C44D30 #A7C430
monochromatic
#182E62 #244693 #305DC4 #5A80D7 #8CA6E3

Accessibility & contrast

On white

6.02
#305DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#305DC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305DC4
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305DC4#FFFFFF#000000##FFFFFF
##305DC41.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#136AC8
Deuteranopia (green-blind)
#005CC2
Tritanopia (blue-blind)
#007687
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #305dc4;
/* rgb */ color: rgb(48, 93, 196);
/* oklch */ color: oklch(50.7% 0.169 263.7);
Tailwind
colors: {
  custom: {
    50: '#7d8ad7',
    500: '#305dc4',
    950: '#000000',
  },
}
SCSS
$custom: #305dc4;
$custom-light: #7d8ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#305dc4",
  "rgb": {
    "r": 48,
    "g": 93,
    "b": 196
  },
  "hsl": {
    "h": 221.757,
    "s": 60.656,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50664,
    "c": 0.16887,
    "h": 263.7
  },
  "luminance": 0.12443
}

Semantic roles & 50–950 ramp

primary
#305DC4
secondary
#CDB683
accent
#B344E4
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #305DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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