#305DA7#305DA7

#305DA7 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.6% C 0.129 H 259.8°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#305DA7
RGBrgb(48, 93, 167)
HSLhsl(217, 55%, 42%)
HSVhsv(217, 71%, 65%)
CMYKcmyk(71.3%, 44.3%, 0%, 34.5%)
CIE-LABlab(39.99, 10.23, -44.38)
CIE-LCHlch(39.99, 45.54, 282.98°)
OKLaboklab(48.58% -0.0228 -0.1269)
OKLCHoklch(48.58% 0.129 259.8)
XYZxyz(12.1058, 11.2458, 38.0844)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305DA7 #A77A30
analogous
#3099A7 #305DA7 #3F30A7
triadic
#305DA7 #A7305D #5DA730
tetradic
#305DA7 #A73099 #A77A30 #30A73F
square
#305DA7 #A73099 #A77A30 #30A73F
split-complementary
#305DA7 #A73F30 #99A730
monochromatic
#152848 #224377 #305DA7 #497ACB #799DD8

Accessibility & contrast

On white

6.46
#305DA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#305DA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305DA7
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305DA7#FFFFFF#000000##FFFFFF
##305DA71.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3964AA
Deuteranopia (green-blind)
#2359A5
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #305da7;
/* rgb */ color: rgb(48, 93, 167);
/* oklch */ color: oklch(48.6% 0.129 259.8);
Tailwind
colors: {
  custom: {
    50: '#778ac1',
    500: '#305da7',
    950: '#000000',
  },
}
SCSS
$custom: #305da7;
$custom-light: #778ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#305da7",
  "rgb": {
    "r": 48,
    "g": 93,
    "b": 167
  },
  "hsl": {
    "h": 217.311,
    "s": 55.349,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48583,
    "c": 0.12895,
    "h": 259.8
  },
  "luminance": 0.11247
}

Semantic roles & 50–950 ramp

primary
#305DA7
secondary
#C1A372
accent
#A649DF
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #305DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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