#305FC2#305FC2

#305FC2 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 50.9% C 0.164 H 262.9°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#305FC2
RGBrgb(48, 95, 194)
HSLhsl(221, 60%, 47%)
HSVhsv(221, 75%, 76%)
CMYKcmyk(75.3%, 51%, 0%, 23.9%)
CIE-LABlab(42.32, 19.11, -56.47)
CIE-LCHlch(42.32, 59.62, 288.69°)
OKLaboklab(50.93% -0.0203 -0.1625)
OKLCHoklch(50.93% 0.164 262.9)
XYZxyz(15.0453, 12.7062, 52.6881)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FC2 #C29330
analogous
#30A8C2 #305FC2 #4A30C2
triadic
#305FC2 #C2305F #5FC230
tetradic
#305FC2 #C230A8 #C29330 #30C24A
square
#305FC2 #C230A8 #C29330 #30C24A
split-complementary
#305FC2 #C24A30 #A8C230
monochromatic
#182F60 #244791 #305FC2 #5981D6 #8AA7E2

Accessibility & contrast

On white

5.93
#305FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#305FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FC2
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FC2#FFFFFF#000000##FFFFFF
##305FC21.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#206BC6
Deuteranopia (green-blind)
#005EC0
Tritanopia (blue-blind)
#007787
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #305fc2;
/* rgb */ color: rgb(48, 95, 194);
/* oklch */ color: oklch(50.9% 0.164 262.9);
Tailwind
colors: {
  custom: {
    50: '#7d8bd5',
    500: '#305fc2',
    950: '#000000',
  },
}
SCSS
$custom: #305fc2;
$custom-light: #7d8bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#305fc2",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 194
  },
  "hsl": {
    "h": 220.685,
    "s": 60.331,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50931,
    "c": 0.16373,
    "h": 262.9
  },
  "luminance": 0.12708
}

Semantic roles & 50–950 ramp

primary
#305FC2
secondary
#CCB482
accent
#B044E3
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #305FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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