#305EC2#305EC2

#305EC2 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.7% C 0.165 H 263.2°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#305EC2
RGBrgb(48, 94, 194)
HSLhsl(221, 60%, 47%)
HSVhsv(221, 75%, 76%)
CMYKcmyk(75.3%, 51.5%, 0%, 23.9%)
CIE-LABlab(42.04, 19.75, -56.92)
CIE-LCHlch(42.04, 60.25, 289.14°)
OKLaboklab(50.72% -0.0196 -0.1638)
OKLCHoklch(50.72% 0.165 263.2)
XYZxyz(14.9558, 12.5272, 52.6582)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305EC2 #C29430
analogous
#30A7C2 #305EC2 #4B30C2
triadic
#305EC2 #C2305E #5EC230
tetradic
#305EC2 #C230A7 #C29430 #30C24B
square
#305EC2 #C230A7 #C29430 #30C24B
split-complementary
#305EC2 #C24B30 #A7C230
monochromatic
#182E60 #244691 #305EC2 #5981D6 #8AA6E2

Accessibility & contrast

On white

5.99
#305EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#305EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305EC2
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305EC2#FFFFFF#000000##FFFFFF
##305EC21.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C6AC6
Deuteranopia (green-blind)
#005DC0
Tritanopia (blue-blind)
#007687
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #305ec2;
/* rgb */ color: rgb(48, 94, 194);
/* oklch */ color: oklch(50.7% 0.165 263.2);
Tailwind
colors: {
  custom: {
    50: '#7d8bd5',
    500: '#305ec2',
    950: '#000000',
  },
}
SCSS
$custom: #305ec2;
$custom-light: #7d8bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#305ec2",
  "rgb": {
    "r": 48,
    "g": 94,
    "b": 194
  },
  "hsl": {
    "h": 221.096,
    "s": 60.331,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50721,
    "c": 0.16494,
    "h": 263.2
  },
  "luminance": 0.12529
}

Semantic roles & 50–950 ramp

primary
#305EC2
secondary
#CCB582
accent
#B144E3
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #305EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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