#305AA2#305AA2

#305AA2 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.6% C 0.126 H 260.4°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#305AA2
RGBrgb(48, 90, 162)
HSLhsl(218, 54%, 41%)
HSVhsv(218, 70%, 64%)
CMYKcmyk(70.4%, 44.4%, 0%, 36.5%)
CIE-LABlab(38.81, 10.29, -43.30)
CIE-LCHlch(38.81, 44.51, 283.37°)
OKLaboklab(47.57% -0.0209 -0.1238)
OKLCHoklch(47.57% 0.126 260.4)
XYZxyz(11.3943, 10.5482, 35.6109)
Luminance0.1055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305AA2 #A27830
analogous
#3093A2 #305AA2 #3F30A2
triadic
#305AA2 #A2305A #5AA230
tetradic
#305AA2 #A23093 #A27830 #30A23F
square
#305AA2 #A23093 #A27830 #30A23F
split-complementary
#305AA2 #A23F30 #93A230
monochromatic
#142644 #224073 #305AA2 #4777C8 #769AD6

Accessibility & contrast

On white

6.75
#305AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#305AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305AA2
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305AA2#FFFFFF#000000##FFFFFF
##305AA21.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A5
Deuteranopia (green-blind)
#2356A1
Tritanopia (blue-blind)
#006B76
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #305aa2;
/* rgb */ color: rgb(48, 90, 162);
/* oklch */ color: oklch(47.6% 0.126 260.4);
Tailwind
colors: {
  custom: {
    50: '#7688be',
    500: '#305aa2',
    950: '#000000',
  },
}
SCSS
$custom: #305aa2;
$custom-light: #7688be;
$custom-dark: #000000;
JSON
{
  "hex": "#305aa2",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 162
  },
  "hsl": {
    "h": 217.895,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47571,
    "c": 0.12554,
    "h": 260.4
  },
  "luminance": 0.10549
}

Semantic roles & 50–950 ramp

primary
#305AA2
secondary
#BEA16F
accent
#A74ADE
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #305AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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