#305DAF#305DAF

#305DAF is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.1% C 0.140 H 261.2°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#305DAF
RGBrgb(48, 93, 175)
HSLhsl(219, 57%, 44%)
HSVhsv(219, 73%, 69%)
CMYKcmyk(72.6%, 46.9%, 0%, 31.4%)
CIE-LABlab(40.49, 13.24, -48.30)
CIE-LCHlch(40.49, 50.08, 285.33°)
OKLaboklab(49.13% -0.0213 -0.1385)
OKLCHoklch(49.13% 0.14 261.2)
XYZxyz(12.8684, 11.5508, 42.1005)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305DAF #AF8230
analogous
#309CAF #305DAF #4230AF
triadic
#305DAF #AF305D #5DAF30
tetradic
#305DAF #AF309C #AF8230 #30AF42
square
#305DAF #AF309C #AF8230 #30AF42
split-complementary
#305DAF #AF4230 #9CAF30
monochromatic
#162A4F #23437F #305DAF #4E7BCE #7E9FDC

Accessibility & contrast

On white

6.34
#305DAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#305DAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305DAF
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305DAF#FFFFFF#000000##FFFFFF
##305DAF1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3266B2
Deuteranopia (green-blind)
#155AAD
Tritanopia (blue-blind)
#00707D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #305daf;
/* rgb */ color: rgb(48, 93, 175);
/* oklch */ color: oklch(49.1% 0.140 261.2);
Tailwind
colors: {
  custom: {
    50: '#798ac7',
    500: '#305daf',
    950: '#000000',
  },
}
SCSS
$custom: #305daf;
$custom-light: #798ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#305daf",
  "rgb": {
    "r": 48,
    "g": 93,
    "b": 175
  },
  "hsl": {
    "h": 218.74,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.49131,
    "c": 0.14009,
    "h": 261.2
  },
  "luminance": 0.11552
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #305DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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