#305EA2#305EA2

#305EA2 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.5% C 0.121 H 258.2°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#305EA2
RGBrgb(48, 94, 162)
HSLhsl(216, 54%, 41%)
HSVhsv(216, 70%, 64%)
CMYKcmyk(70.4%, 42%, 0%, 36.5%)
CIE-LABlab(39.98, 7.70, -41.42)
CIE-LCHlch(39.98, 42.13, 280.54°)
OKLaboklab(48.48% -0.0248 -0.1182)
OKLCHoklch(48.48% 0.121 258.2)
XYZxyz(11.7409, 11.2412, 35.7264)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305EA2 #A27430
analogous
#3097A2 #305EA2 #3B30A2
triadic
#305EA2 #A2305E #5EA230
tetradic
#305EA2 #A23097 #A27430 #30A23B
square
#305EA2 #A23097 #A27430 #30A23B
split-complementary
#305EA2 #A23B30 #97A230
monochromatic
#142744 #224373 #305EA2 #477BC8 #769DD6

Accessibility & contrast

On white

6.46
#305EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#305EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305EA2
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305EA2#FFFFFF#000000##FFFFFF
##305EA21.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E64A5
Deuteranopia (green-blind)
#2C59A1
Tritanopia (blue-blind)
#006E78
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #305ea2;
/* rgb */ color: rgb(48, 94, 162);
/* oklch */ color: oklch(48.5% 0.121 258.2);
Tailwind
colors: {
  custom: {
    50: '#768bbe',
    500: '#305ea2',
    950: '#000000',
  },
}
SCSS
$custom: #305ea2;
$custom-light: #768bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#305ea2",
  "rgb": {
    "r": 48,
    "g": 94,
    "b": 162
  },
  "hsl": {
    "h": 215.789,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4848,
    "c": 0.12078,
    "h": 258.2
  },
  "luminance": 0.11242
}

Semantic roles & 50–950 ramp

primary
#305EA2
secondary
#BE9F6F
accent
#A24ADE
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #305EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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