#305CC4#305CC4

#305CC4 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.5% C 0.170 H 264.0°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#305CC4
RGBrgb(48, 92, 196)
HSLhsl(222, 61%, 48%)
HSVhsv(222, 76%, 77%)
CMYKcmyk(75.5%, 53.1%, 0%, 23.1%)
CIE-LABlab(41.64, 21.81, -58.73)
CIE-LCHlch(41.64, 62.65, 290.37°)
OKLaboklab(50.46% -0.0178 -0.1692)
OKLCHoklch(50.46% 0.17 264)
XYZxyz(15.0063, 12.2665, 53.7906)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CC4 #C49830
analogous
#30A6C4 #305CC4 #4E30C4
triadic
#305CC4 #C4305C #5CC430
tetradic
#305CC4 #C430A6 #C49830 #30C44E
square
#305CC4 #C430A6 #C49830 #30C44E
split-complementary
#305CC4 #C44E30 #A6C430
monochromatic
#182E62 #244593 #305CC4 #5A7FD7 #8CA6E3

Accessibility & contrast

On white

6.08
#305CC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#305CC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305CC4
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CC4#FFFFFF#000000##FFFFFF
##305CC41.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D69C8
Deuteranopia (green-blind)
#005CC2
Tritanopia (blue-blind)
#007587
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #305cc4;
/* rgb */ color: rgb(48, 92, 196);
/* oklch */ color: oklch(50.5% 0.170 264.0);
Tailwind
colors: {
  custom: {
    50: '#7d89d7',
    500: '#305cc4',
    950: '#000000',
  },
}
SCSS
$custom: #305cc4;
$custom-light: #7d89d7;
$custom-dark: #000000;
JSON
{
  "hex": "#305cc4",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 196
  },
  "hsl": {
    "h": 222.162,
    "s": 60.656,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50458,
    "c": 0.17009,
    "h": 264
  },
  "luminance": 0.12268
}

Semantic roles & 50–950 ramp

primary
#305CC4
secondary
#CDB783
accent
#B444E4
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #305CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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