#305AC7#305AC7

#305AC7 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.3% C 0.177 H 264.8°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#305AC7
RGBrgb(48, 90, 199)
HSLhsl(223, 61%, 48%)
HSVhsv(223, 76%, 78%)
CMYKcmyk(75.9%, 54.8%, 0%, 22%)
CIE-LABlab(41.32, 24.23, -60.99)
CIE-LCHlch(41.32, 65.63, 291.67°)
OKLaboklab(50.28% -0.0161 -0.1758)
OKLCHoklch(50.28% 0.177 264.8)
XYZxyz(15.1802, 12.0625, 55.5500)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305AC7 #C79D30
analogous
#30A5C7 #305AC7 #5130C7
triadic
#305AC7 #C7305A #5AC730
tetradic
#305AC7 #C730A5 #C79D30 #30C751
square
#305AC7 #C730A5 #C79D30 #30C751
split-complementary
#305AC7 #C75130 #A5C730
monochromatic
#182D64 #244496 #305AC7 #5C7FD8 #8EA6E4

Accessibility & contrast

On white

6.15
#305AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#305AC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305AC7
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305AC7#FFFFFF#000000##FFFFFF
##305AC71.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#007588
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #305ac7;
/* rgb */ color: rgb(48, 90, 199);
/* oklch */ color: oklch(50.3% 0.177 264.8);
Tailwind
colors: {
  custom: {
    50: '#7e88d9',
    500: '#305ac7',
    950: '#000000',
  },
}
SCSS
$custom: #305ac7;
$custom-light: #7e88d9;
$custom-dark: #000000;
JSON
{
  "hex": "#305ac7",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 199
  },
  "hsl": {
    "h": 223.311,
    "s": 61.134,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50284,
    "c": 0.17657,
    "h": 264.8
  },
  "luminance": 0.12064
}

Semantic roles & 50–950 ramp

primary
#305AC7
secondary
#CEBA85
accent
#B844E4
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #305AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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