#305AA5#305AA5

#305AA5 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 47.8% C 0.130 H 261.0°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#305AA5
RGBrgb(48, 90, 165)
HSLhsl(218, 55%, 42%)
HSVhsv(218, 71%, 65%)
CMYKcmyk(70.9%, 45.5%, 0%, 35.3%)
CIE-LABlab(39.00, 11.42, -44.79)
CIE-LCHlch(39.00, 46.22, 284.31°)
OKLaboklab(47.78% -0.0203 -0.1282)
OKLCHoklch(47.78% 0.13 261)
XYZxyz(11.6642, 10.6561, 37.0321)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305AA5 #A57B30
analogous
#3095A5 #305AA5 #4130A5
triadic
#305AA5 #A5305A #5AA530
tetradic
#305AA5 #A53095 #A57B30 #30A541
square
#305AA5 #A53095 #A57B30 #30A541
split-complementary
#305AA5 #A54130 #95A530
monochromatic
#142646 #224076 #305AA5 #4877CA #789AD8

Accessibility & contrast

On white

6.71
#305AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#305AA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305AA5
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305AA5#FFFFFF#000000##FFFFFF
##305AA51.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3562A8
Deuteranopia (green-blind)
#1E57A3
Tritanopia (blue-blind)
#006B77
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #305aa5;
/* rgb */ color: rgb(48, 90, 165);
/* oklch */ color: oklch(47.8% 0.130 261.0);
Tailwind
colors: {
  custom: {
    50: '#7788c0',
    500: '#305aa5',
    950: '#000000',
  },
}
SCSS
$custom: #305aa5;
$custom-light: #7788c0;
$custom-dark: #000000;
JSON
{
  "hex": "#305aa5",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 165
  },
  "hsl": {
    "h": 218.462,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47775,
    "c": 0.12977,
    "h": 261
  },
  "luminance": 0.10657
}

Semantic roles & 50–950 ramp

primary
#305AA5
secondary
#C0A471
accent
#A94ADE
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #305AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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