#305AC9#305AC9

#305AC9 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.4% C 0.179 H 264.9°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#305AC9
RGBrgb(48, 90, 201)
HSLhsl(224, 61%, 49%)
HSVhsv(224, 76%, 79%)
CMYKcmyk(76.1%, 55.2%, 0%, 21.2%)
CIE-LABlab(41.46, 24.98, -61.91)
CIE-LCHlch(41.46, 66.76, 291.97°)
OKLaboklab(50.44% -0.0159 -0.1785)
OKLCHoklch(50.44% 0.179 264.9)
XYZxyz(15.4140, 12.1560, 56.7810)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305AC9 #C99F30
analogous
#30A7C9 #305AC9 #5230C9
triadic
#305AC9 #C9305A #5AC930
tetradic
#305AC9 #C930A7 #C99F30 #30C952
square
#305AC9 #C930A7 #C99F30 #30C952
split-complementary
#305AC9 #C95230 #A7C930
monochromatic
#182E66 #244498 #305AC9 #5E7FD8 #8FA6E4

Accessibility & contrast

On white

6.12
#305AC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#305AC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305AC9
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305AC9#FFFFFF#000000##FFFFFF
##305AC91.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CD
Deuteranopia (green-blind)
#005BC7
Tritanopia (blue-blind)
#007589
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #305ac9;
/* rgb */ color: rgb(48, 90, 201);
/* oklch */ color: oklch(50.4% 0.179 264.9);
Tailwind
colors: {
  custom: {
    50: '#7f88da',
    500: '#305ac9',
    950: '#000000',
  },
}
SCSS
$custom: #305ac9;
$custom-light: #7f88da;
$custom-dark: #000000;
JSON
{
  "hex": "#305ac9",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 201
  },
  "hsl": {
    "h": 223.529,
    "s": 61.446,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50442,
    "c": 0.17925,
    "h": 264.9
  },
  "luminance": 0.12158
}

Semantic roles & 50–950 ramp

primary
#305AC9
secondary
#CFBB86
accent
#B843E5
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #305AC9

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

Preview Lab → · Contrast checker → · Palette generator →

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