#305CA2#305CA2

#305CA2 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.0% C 0.123 H 259.3°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#305CA2
RGBrgb(48, 92, 162)
HSLhsl(217, 54%, 41%)
HSVhsv(217, 70%, 64%)
CMYKcmyk(70.4%, 43.2%, 0%, 36.5%)
CIE-LABlab(39.39, 9.00, -42.36)
CIE-LCHlch(39.39, 43.31, 281.99°)
OKLaboklab(48.02% -0.0228 -0.121)
OKLCHoklch(48.02% 0.123 259.3)
XYZxyz(11.5653, 10.8901, 35.6679)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CA2 #A27630
analogous
#3095A2 #305CA2 #3D30A2
triadic
#305CA2 #A2305C #5CA230
tetradic
#305CA2 #A23095 #A27630 #30A23D
square
#305CA2 #A23095 #A27630 #30A23D
split-complementary
#305CA2 #A23D30 #95A230
monochromatic
#142644 #224173 #305CA2 #4779C8 #769BD6

Accessibility & contrast

On white

6.61
#305CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#305CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305CA2
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CA2#FFFFFF#000000##FFFFFF
##305CA21.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B62A5
Deuteranopia (green-blind)
#2758A1
Tritanopia (blue-blind)
#006C77
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #305ca2;
/* rgb */ color: rgb(48, 92, 162);
/* oklch */ color: oklch(48.0% 0.123 259.3);
Tailwind
colors: {
  custom: {
    50: '#7689be',
    500: '#305ca2',
    950: '#000000',
  },
}
SCSS
$custom: #305ca2;
$custom-light: #7689be;
$custom-dark: #000000;
JSON
{
  "hex": "#305ca2",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 162
  },
  "hsl": {
    "h": 216.842,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48024,
    "c": 0.12314,
    "h": 259.3
  },
  "luminance": 0.10891
}

Semantic roles & 50–950 ramp

primary
#305CA2
secondary
#BEA06F
accent
#A54ADE
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #305CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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