#305CB1#305CB1

#305CB1 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.1% C 0.144 H 262.0°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#305CB1
RGBrgb(48, 92, 177)
HSLhsl(220, 57%, 44%)
HSVhsv(220, 73%, 69%)
CMYKcmyk(72.9%, 48%, 0%, 30.6%)
CIE-LABlab(40.34, 14.64, -49.73)
CIE-LCHlch(40.34, 51.84, 286.41°)
OKLaboklab(49.05% -0.0201 -0.1427)
OKLCHoklch(49.05% 0.144 262)
XYZxyz(12.9790, 11.4556, 43.1136)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CB1 #B18530
analogous
#309DB1 #305CB1 #4530B1
triadic
#305CB1 #B1305C #5CB130
tetradic
#305CB1 #B1309D #B18530 #30B145
square
#305CB1 #B1309D #B18530 #30B145
split-complementary
#305CB1 #B14530 #9DB130
monochromatic
#162A51 #234381 #305CB1 #4F7BCF #7F9FDC

Accessibility & contrast

On white

6.38
#305CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#305CB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305CB1
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CB1#FFFFFF#000000##FFFFFF
##305CB11.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E65B4
Deuteranopia (green-blind)
#095AAF
Tritanopia (blue-blind)
#00707E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #305cb1;
/* rgb */ color: rgb(48, 92, 177);
/* oklch */ color: oklch(49.1% 0.144 262.0);
Tailwind
colors: {
  custom: {
    50: '#7989c9',
    500: '#305cb1',
    950: '#000000',
  },
}
SCSS
$custom: #305cb1;
$custom-light: #7989c9;
$custom-dark: #000000;
JSON
{
  "hex": "#305cb1",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 177
  },
  "hsl": {
    "h": 219.535,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49053,
    "c": 0.14408,
    "h": 262
  },
  "luminance": 0.11457
}

Semantic roles & 50–950 ramp

primary
#305CB1
secondary
#C5AB78
accent
#AC47E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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