#305CB7#305CB7

#305CB7 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.5% C 0.152 H 262.7°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#305CB7
RGBrgb(48, 92, 183)
HSLhsl(220, 58%, 45%)
HSVhsv(220, 74%, 72%)
CMYKcmyk(73.8%, 49.7%, 0%, 28.2%)
CIE-LABlab(40.74, 16.91, -52.61)
CIE-LCHlch(40.74, 55.26, 287.82°)
OKLaboklab(49.49% -0.0193 -0.1511)
OKLCHoklch(49.49% 0.152 262.7)
XYZxyz(13.5903, 11.7001, 46.3327)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CB7 #B78B30
analogous
#30A0B7 #305CB7 #4730B7
triadic
#305CB7 #B7305C #5CB730
tetradic
#305CB7 #B730A0 #B78B30 #30B747
square
#305CB7 #B730A0 #B78B30 #30B747
split-complementary
#305CB7 #B74730 #A0B730
monochromatic
#172B56 #234487 #305CB7 #527CD2 #83A1DE

Accessibility & contrast

On white

6.29
#305CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#305CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305CB7
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CB7#FFFFFF#000000##FFFFFF
##305CB71.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2767BA
Deuteranopia (green-blind)
#005AB5
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #305cb7;
/* rgb */ color: rgb(48, 92, 183);
/* oklch */ color: oklch(49.5% 0.152 262.7);
Tailwind
colors: {
  custom: {
    50: '#7a89cd',
    500: '#305cb7',
    950: '#000000',
  },
}
SCSS
$custom: #305cb7;
$custom-light: #7a89cd;
$custom-dark: #000000;
JSON
{
  "hex": "#305cb7",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 183
  },
  "hsl": {
    "h": 220.444,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49485,
    "c": 0.15237,
    "h": 262.7
  },
  "luminance": 0.11702
}

Semantic roles & 50–950 ramp

primary
#305CB7
secondary
#C8AF7B
accent
#AF46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #305CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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