#305CB2#305CB2

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

Color values

HEX#305CB2
RGBrgb(48, 92, 178)
HSLhsl(220, 58%, 44%)
HSVhsv(220, 73%, 70%)
CMYKcmyk(73%, 48.3%, 0%, 30.2%)
CIE-LABlab(40.40, 15.02, -50.21)
CIE-LCHlch(40.40, 52.41, 286.65°)
OKLaboklab(49.13% -0.02 -0.1441)
OKLCHoklch(49.13% 0.145 262.1)
XYZxyz(13.0791, 11.4956, 43.6404)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CB2 #B28630
analogous
#309DB2 #305CB2 #4530B2
triadic
#305CB2 #B2305C #5CB230
tetradic
#305CB2 #B2309D #B28630 #30B245
square
#305CB2 #B2309D #B28630 #30B245
split-complementary
#305CB2 #B24530 #9DB230
monochromatic
#162A52 #234382 #305CB2 #507BD0 #809FDD

Accessibility & contrast

On white

6.36
#305CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#305CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305CB2
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CB2#FFFFFF#000000##FFFFFF
##305CB21.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D66B5
Deuteranopia (green-blind)
#055AB0
Tritanopia (blue-blind)
#00707E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #305cb2;
/* rgb */ color: rgb(48, 92, 178);
/* oklch */ color: oklch(49.1% 0.145 262.1);
Tailwind
colors: {
  custom: {
    50: '#7989ca',
    500: '#305cb2',
    950: '#000000',
  },
}
SCSS
$custom: #305cb2;
$custom-light: #7989ca;
$custom-dark: #000000;
JSON
{
  "hex": "#305cb2",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 178
  },
  "hsl": {
    "h": 219.692,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49125,
    "c": 0.14548,
    "h": 262.1
  },
  "luminance": 0.11497
}

Semantic roles & 50–950 ramp

primary
#305CB2
secondary
#C6AB78
accent
#AD47E1
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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