#305CAF#305CAF

#305CAF is a mid, vivid blue. Relative luminance 0.114; OKLCH L 48.9% C 0.141 H 261.7°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#305CAF
RGBrgb(48, 92, 175)
HSLhsl(219, 57%, 44%)
HSVhsv(219, 73%, 69%)
CMYKcmyk(72.6%, 47.4%, 0%, 31.4%)
CIE-LABlab(40.21, 13.89, -48.76)
CIE-LCHlch(40.21, 50.70, 285.90°)
OKLaboklab(48.91% -0.0204 -0.1398)
OKLCHoklch(48.91% 0.141 261.7)
XYZxyz(12.7812, 11.3764, 42.0714)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CAF #AF8330
analogous
#309BAF #305CAF #4330AF
triadic
#305CAF #AF305C #5CAF30
tetradic
#305CAF #AF309B #AF8330 #30AF43
square
#305CAF #AF309B #AF8330 #30AF43
split-complementary
#305CAF #AF4330 #9BAF30
monochromatic
#162A4F #23437F #305CAF #4E7ACE #7E9EDC

Accessibility & contrast

On white

6.41
#305CAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#305CAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305CAF
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CAF#FFFFFF#000000##FFFFFF
##305CAF1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3065B2
Deuteranopia (green-blind)
#1059AD
Tritanopia (blue-blind)
#00707D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #305caf;
/* rgb */ color: rgb(48, 92, 175);
/* oklch */ color: oklch(48.9% 0.141 261.7);
Tailwind
colors: {
  custom: {
    50: '#7989c7',
    500: '#305caf',
    950: '#000000',
  },
}
SCSS
$custom: #305caf;
$custom-light: #7989c7;
$custom-dark: #000000;
JSON
{
  "hex": "#305caf",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 175
  },
  "hsl": {
    "h": 219.213,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48912,
    "c": 0.14131,
    "h": 261.7
  },
  "luminance": 0.11378
}

Semantic roles & 50–950 ramp

primary
#305CAF
secondary
#C4A976
accent
#AB48E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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