#305AC2#305AC2

#305AC2 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.9% C 0.170 H 264.4°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#305AC2
RGBrgb(48, 90, 194)
HSLhsl(223, 60%, 47%)
HSVhsv(223, 75%, 76%)
CMYKcmyk(75.3%, 53.6%, 0%, 23.9%)
CIE-LABlab(40.95, 22.35, -58.68)
CIE-LCHlch(40.95, 62.79, 290.85°)
OKLaboklab(49.89% -0.0165 -0.169)
OKLCHoklch(49.89% 0.17 264.4)
XYZxyz(14.6092, 11.8341, 52.5427)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305AC2 #C29830
analogous
#30A3C2 #305AC2 #4F30C2
triadic
#305AC2 #C2305A #5AC230
tetradic
#305AC2 #C230A3 #C29830 #30C24F
square
#305AC2 #C230A3 #C29830 #30C24F
split-complementary
#305AC2 #C24F30 #A3C230
monochromatic
#182C60 #244391 #305AC2 #597DD6 #8AA4E2

Accessibility & contrast

On white

6.24
#305AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#305AC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305AC2
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305AC2#FFFFFF#000000##FFFFFF
##305AC21.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0568C6
Deuteranopia (green-blind)
#005AC0
Tritanopia (blue-blind)
#007385
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #305ac2;
/* rgb */ color: rgb(48, 90, 194);
/* oklch */ color: oklch(49.9% 0.170 264.4);
Tailwind
colors: {
  custom: {
    50: '#7d88d5',
    500: '#305ac2',
    950: '#000000',
  },
}
SCSS
$custom: #305ac2;
$custom-light: #7d88d5;
$custom-dark: #000000;
JSON
{
  "hex": "#305ac2",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 194
  },
  "hsl": {
    "h": 222.74,
    "s": 60.331,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49893,
    "c": 0.16985,
    "h": 264.4
  },
  "luminance": 0.11836
}

Semantic roles & 50–950 ramp

primary
#305AC2
secondary
#CCB782
accent
#B644E3
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #305AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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