#305FBF#305FBF

#305FBF is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.7% C 0.160 H 262.5°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#305FBF
RGBrgb(48, 95, 191)
HSLhsl(220, 60%, 47%)
HSVhsv(220, 75%, 75%)
CMYKcmyk(74.9%, 50.3%, 0%, 25.1%)
CIE-LABlab(42.11, 17.97, -55.06)
CIE-LCHlch(42.11, 57.92, 288.08°)
OKLaboklab(50.71% -0.0207 -0.1583)
OKLCHoklch(50.71% 0.16 262.5)
XYZxyz(14.7117, 12.5728, 50.9315)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FBF #BF9030
analogous
#30A7BF #305FBF #4930BF
triadic
#305FBF #BF305F #5FBF30
tetradic
#305FBF #BF30A7 #BF9030 #30BF49
square
#305FBF #BF30A7 #BF9030 #30BF49
split-complementary
#305FBF #BF4930 #A7BF30
monochromatic
#172E5D #24478E #305FBF #5781D5 #88A5E1

Accessibility & contrast

On white

5.97
#305FBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#305FBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FBF
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FBF#FFFFFF#000000##FFFFFF
##305FBF1.005.973.515.97
#FFFFFF5.971.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#256AC2
Deuteranopia (green-blind)
#005DBD
Tritanopia (blue-blind)
#007686
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #305fbf;
/* rgb */ color: rgb(48, 95, 191);
/* oklch */ color: oklch(50.7% 0.160 262.5);
Tailwind
colors: {
  custom: {
    50: '#7c8bd3',
    500: '#305fbf',
    950: '#000000',
  },
}
SCSS
$custom: #305fbf;
$custom-light: #7c8bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#305fbf",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 191
  },
  "hsl": {
    "h": 220.28,
    "s": 59.833,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50709,
    "c": 0.15965,
    "h": 262.5
  },
  "luminance": 0.12574
}

Semantic roles & 50–950 ramp

primary
#305FBF
secondary
#CBB280
accent
#AF45E3
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #305FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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