#305DA8#305DA8

#305DA8 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.7% C 0.130 H 260.0°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#305DA8
RGBrgb(48, 93, 168)
HSLhsl(218, 56%, 42%)
HSVhsv(218, 71%, 66%)
CMYKcmyk(71.4%, 44.6%, 0%, 34.1%)
CIE-LABlab(40.05, 10.60, -44.87)
CIE-LCHlch(40.05, 46.11, 283.29°)
OKLaboklab(48.65% -0.0226 -0.1284)
OKLCHoklch(48.65% 0.13 260)
XYZxyz(12.1986, 11.2829, 38.5731)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305DA8 #A87B30
analogous
#3099A8 #305DA8 #3F30A8
triadic
#305DA8 #A8305D #5DA830
tetradic
#305DA8 #A83099 #A87B30 #30A83F
square
#305DA8 #A83099 #A87B30 #30A83F
split-complementary
#305DA8 #A83F30 #99A830
monochromatic
#152849 #224378 #305DA8 #4A7ACB #7A9DD9

Accessibility & contrast

On white

6.45
#305DA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#305DA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305DA8
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305DA8#FFFFFF#000000##FFFFFF
##305DA81.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3864AB
Deuteranopia (green-blind)
#2259A6
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #305da8;
/* rgb */ color: rgb(48, 93, 168);
/* oklch */ color: oklch(48.7% 0.130 260.0);
Tailwind
colors: {
  custom: {
    50: '#778ac2',
    500: '#305da8',
    950: '#000000',
  },
}
SCSS
$custom: #305da8;
$custom-light: #778ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#305da8",
  "rgb": {
    "r": 48,
    "g": 93,
    "b": 168
  },
  "hsl": {
    "h": 217.5,
    "s": 55.556,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48651,
    "c": 0.13034,
    "h": 260
  },
  "luminance": 0.11284
}

Semantic roles & 50–950 ramp

primary
#305DA8
secondary
#C1A473
accent
#A749DF
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #305DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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