#305BAF#305BAF

#305BAF is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.7% C 0.143 H 262.1°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#305BAF
RGBrgb(48, 91, 175)
HSLhsl(220, 57%, 44%)
HSVhsv(220, 73%, 69%)
CMYKcmyk(72.6%, 48%, 0%, 31.4%)
CIE-LABlab(39.92, 14.54, -49.22)
CIE-LCHlch(39.92, 51.32, 286.46°)
OKLaboklab(48.69% -0.0195 -0.1412)
OKLCHoklch(48.69% 0.143 262.1)
XYZxyz(12.6951, 11.2043, 42.0427)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305BAF #AF8430
analogous
#309AAF #305BAF #4430AF
triadic
#305BAF #AF305B #5BAF30
tetradic
#305BAF #AF309A #AF8430 #30AF44
square
#305BAF #AF309A #AF8430 #30AF44
split-complementary
#305BAF #AF4430 #9AAF30
monochromatic
#16294F #23427F #305BAF #4E79CE #7E9EDC

Accessibility & contrast

On white

6.48
#305BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #305BAF
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305BAF#FFFFFF#000000##FFFFFF
##305BAF1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E64B2
Deuteranopia (green-blind)
#0A59AD
Tritanopia (blue-blind)
#006F7C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #305baf;
/* rgb */ color: rgb(48, 91, 175);
/* oklch */ color: oklch(48.7% 0.143 262.1);
Tailwind
colors: {
  custom: {
    50: '#7988c7',
    500: '#305baf',
    950: '#000000',
  },
}
SCSS
$custom: #305baf;
$custom-light: #7988c7;
$custom-dark: #000000;
JSON
{
  "hex": "#305baf",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 175
  },
  "hsl": {
    "h": 219.685,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48693,
    "c": 0.14254,
    "h": 262.1
  },
  "luminance": 0.11206
}

Semantic roles & 50–950 ramp

primary
#305BAF
secondary
#C4AA76
accent
#AD48E0
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #305BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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