#305BCD#305BCD

#305BCD is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.0% C 0.183 H 264.9°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#305BCD
RGBrgb(48, 91, 205)
HSLhsl(224, 62%, 50%)
HSVhsv(224, 77%, 80%)
CMYKcmyk(76.6%, 55.6%, 0%, 19.6%)
CIE-LABlab(42.03, 25.83, -63.30)
CIE-LCHlch(42.03, 68.37, 292.19°)
OKLaboklab(50.96% -0.0164 -0.1826)
OKLCHoklch(50.96% 0.183 264.9)
XYZxyz(15.9756, 12.5165, 59.3197)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305BCD #CDA230
analogous
#30A9CD #305BCD #5430CD
triadic
#305BCD #CD305B #5BCD30
tetradic
#305BCD #CD30A9 #CDA230 #30CD54
square
#305BCD #CD30A9 #CDA230 #30CD54
split-complementary
#305BCD #CD5430 #A9CD30
monochromatic
#192F6A #24459B #305BCD #6082DA #92A9E5

Accessibility & contrast

On white

5.99
#305BCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#305BCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305BCD
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305BCD#FFFFFF#000000##FFFFFF
##305BCD1.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#005CCB
Tritanopia (blue-blind)
#00778B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #305bcd;
/* rgb */ color: rgb(48, 91, 205);
/* oklch */ color: oklch(51.0% 0.183 264.9);
Tailwind
colors: {
  custom: {
    50: '#7f88dd',
    500: '#305bcd',
    950: '#000000',
  },
}
SCSS
$custom: #305bcd;
$custom-light: #7f88dd;
$custom-dark: #000000;
JSON
{
  "hex": "#305bcd",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 205
  },
  "hsl": {
    "h": 223.567,
    "s": 62.055,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50959,
    "c": 0.18335,
    "h": 264.9
  },
  "luminance": 0.12518
}

Semantic roles & 50–950 ramp

primary
#305BCD
secondary
#D0BD89
accent
#B943E5
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #305BCD

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

Preview Lab → · Contrast checker → · Palette generator →

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