#305AA1#305AA1

#305AA1 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.5% C 0.124 H 260.2°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#305AA1
RGBrgb(48, 90, 161)
HSLhsl(218, 54%, 41%)
HSVhsv(218, 70%, 63%)
CMYKcmyk(70.2%, 44.1%, 0%, 36.9%)
CIE-LABlab(38.75, 9.92, -42.80)
CIE-LCHlch(38.75, 43.93, 283.05°)
OKLaboklab(47.5% -0.0211 -0.1223)
OKLCHoklch(47.5% 0.124 260.2)
XYZxyz(11.3058, 10.5128, 35.1446)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305AA1 #A17730
analogous
#3092A1 #305AA1 #3E30A1
triadic
#305AA1 #A1305A #5AA130
tetradic
#305AA1 #A13092 #A17730 #30A13E
square
#305AA1 #A13092 #A17730 #30A13E
split-complementary
#305AA1 #A13E30 #92A130
monochromatic
#142543 #224072 #305AA1 #4676C8 #7599D6

Accessibility & contrast

On white

6.77
#305AA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#305AA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305AA1
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305AA1#FFFFFF#000000##FFFFFF
##305AA11.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3861A4
Deuteranopia (green-blind)
#2456A0
Tritanopia (blue-blind)
#006A75
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #305aa1;
/* rgb */ color: rgb(48, 90, 161);
/* oklch */ color: oklch(47.5% 0.124 260.2);
Tailwind
colors: {
  custom: {
    50: '#7688bd',
    500: '#305aa1',
    950: '#000000',
  },
}
SCSS
$custom: #305aa1;
$custom-light: #7688bd;
$custom-dark: #000000;
JSON
{
  "hex": "#305aa1",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 161
  },
  "hsl": {
    "h": 217.699,
    "s": 54.067,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47504,
    "c": 0.12413,
    "h": 260.2
  },
  "luminance": 0.10514
}

Semantic roles & 50–950 ramp

primary
#305AA1
secondary
#BEA16F
accent
#A74ADD
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #305AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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