#305FA2#305FA2

#305FA2 is a mid, moderate blue. Relative luminance 0.114; OKLCH L 48.7% C 0.120 H 257.6°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#305FA2
RGBrgb(48, 95, 162)
HSLhsl(215, 54%, 41%)
HSVhsv(215, 70%, 64%)
CMYKcmyk(70.4%, 41.4%, 0%, 36.5%)
CIE-LABlab(40.28, 7.06, -40.95)
CIE-LCHlch(40.28, 41.55, 279.78°)
OKLaboklab(48.71% -0.0257 -0.1168)
OKLCHoklch(48.71% 0.12 257.6)
XYZxyz(11.8304, 11.4202, 35.7563)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305FA2 #A27330
analogous
#3098A2 #305FA2 #3A30A2
triadic
#305FA2 #A2305F #5FA230
tetradic
#305FA2 #A23098 #A27330 #30A23A
square
#305FA2 #A23098 #A27330 #30A23A
split-complementary
#305FA2 #A23A30 #98A230
monochromatic
#142844 #224373 #305FA2 #477CC8 #769ED6

Accessibility & contrast

On white

6.39
#305FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#305FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305FA2
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305FA2#FFFFFF#000000##FFFFFF
##305FA21.006.393.286.39
#FFFFFF6.391.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4065A5
Deuteranopia (green-blind)
#2E5AA1
Tritanopia (blue-blind)
#006F78
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #305fa2;
/* rgb */ color: rgb(48, 95, 162);
/* oklch */ color: oklch(48.7% 0.120 257.6);
Tailwind
colors: {
  custom: {
    50: '#768bbe',
    500: '#305fa2',
    950: '#000000',
  },
}
SCSS
$custom: #305fa2;
$custom-light: #768bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#305fa2",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 215.263,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48709,
    "c": 0.11962,
    "h": 257.6
  },
  "luminance": 0.11421
}

Semantic roles & 50–950 ramp

primary
#305FA2
secondary
#BE9E6F
accent
#A14ADE
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#090C12
muted
#7B7D81

Preview Lab

Preview with #305FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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