#305DA2#305DA2

#305DA2 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.3% C 0.122 H 258.8°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#305DA2
RGBrgb(48, 93, 162)
HSLhsl(216, 54%, 41%)
HSVhsv(216, 70%, 64%)
CMYKcmyk(70.4%, 42.6%, 0%, 36.5%)
CIE-LABlab(39.69, 8.35, -41.89)
CIE-LCHlch(39.69, 42.72, 281.27°)
OKLaboklab(48.25% -0.0238 -0.1196)
OKLCHoklch(48.25% 0.122 258.8)
XYZxyz(11.6525, 11.0645, 35.6970)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305DA2 #A27530
analogous
#3096A2 #305DA2 #3C30A2
triadic
#305DA2 #A2305D #5DA230
tetradic
#305DA2 #A23096 #A27530 #30A23C
square
#305DA2 #A23096 #A27530 #30A23C
split-complementary
#305DA2 #A23C30 #96A230
monochromatic
#142744 #224273 #305DA2 #477AC8 #769CD6

Accessibility & contrast

On white

6.54
#305DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#305DA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305DA2
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305DA2#FFFFFF#000000##FFFFFF
##305DA21.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C63A5
Deuteranopia (green-blind)
#2A59A1
Tritanopia (blue-blind)
#006D77
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #305da2;
/* rgb */ color: rgb(48, 93, 162);
/* oklch */ color: oklch(48.3% 0.122 258.8);
Tailwind
colors: {
  custom: {
    50: '#768abe',
    500: '#305da2',
    950: '#000000',
  },
}
SCSS
$custom: #305da2;
$custom-light: #768abe;
$custom-dark: #000000;
JSON
{
  "hex": "#305da2",
  "rgb": {
    "r": 48,
    "g": 93,
    "b": 162
  },
  "hsl": {
    "h": 216.316,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48251,
    "c": 0.12195,
    "h": 258.8
  },
  "luminance": 0.11066
}

Semantic roles & 50–950 ramp

primary
#305DA2
secondary
#BE9F6F
accent
#A34ADE
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #305DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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