#305CAB#305CAB

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

Color values

HEX#305CAB
RGBrgb(48, 92, 171)
HSLhsl(219, 56%, 43%)
HSVhsv(219, 72%, 67%)
CMYKcmyk(71.9%, 46.2%, 0%, 32.9%)
CIE-LABlab(39.95, 12.38, -46.81)
CIE-LCHlch(39.95, 48.42, 284.81°)
OKLaboklab(48.63% -0.0211 -0.1341)
OKLCHoklch(48.63% 0.136 261.1)
XYZxyz(12.3941, 11.2216, 40.0330)
Luminance0.1122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CAB #AB7F30
analogous
#3099AB #305CAB #4230AB
triadic
#305CAB #AB305C #5CAB30
tetradic
#305CAB #AB3099 #AB7F30 #30AB42
square
#305CAB #AB3099 #AB7F30 #30AB42
split-complementary
#305CAB #AB4230 #99AB30
monochromatic
#15294B #23427B #305CAB #4C7ACD #7B9DDA

Accessibility & contrast

On white

6.47
#305CAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#305CAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305CAB
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CAB#FFFFFF#000000##FFFFFF
##305CAB1.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3464AE
Deuteranopia (green-blind)
#1A59A9
Tritanopia (blue-blind)
#006E7B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #305cab;
/* rgb */ color: rgb(48, 92, 171);
/* oklch */ color: oklch(48.6% 0.136 261.1);
Tailwind
colors: {
  custom: {
    50: '#7889c4',
    500: '#305cab',
    950: '#000000',
  },
}
SCSS
$custom: #305cab;
$custom-light: #7889c4;
$custom-dark: #000000;
JSON
{
  "hex": "#305cab",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 171
  },
  "hsl": {
    "h": 218.537,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.48633,
    "c": 0.13574,
    "h": 261.1
  },
  "luminance": 0.11223
}

Semantic roles & 50–950 ramp

primary
#305CAB
secondary
#C3A774
accent
#A948DF
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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