#305CC9#305CC9

#305CC9 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.8% C 0.177 H 264.4°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#305CC9
RGBrgb(48, 92, 201)
HSLhsl(223, 61%, 49%)
HSVhsv(223, 76%, 79%)
CMYKcmyk(76.1%, 54.2%, 0%, 21.2%)
CIE-LABlab(42.00, 23.68, -61.04)
CIE-LCHlch(42.00, 65.47, 291.20°)
OKLaboklab(50.85% -0.0174 -0.176)
OKLCHoklch(50.85% 0.177 264.4)
XYZxyz(15.5849, 12.4980, 56.8380)
Luminance0.1250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305CC9 #C99D30
analogous
#30A9C9 #305CC9 #5130C9
triadic
#305CC9 #C9305C #5CC930
tetradic
#305CC9 #C930A9 #C99D30 #30C951
square
#305CC9 #C930A9 #C99D30 #30C951
split-complementary
#305CC9 #C95130 #A9C930
monochromatic
#182F66 #244598 #305CC9 #5E81D8 #8FA8E4

Accessibility & contrast

On white

6.00
#305CC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#305CC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305CC9
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305CC9#FFFFFF#000000##FFFFFF
##305CC91.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACD
Deuteranopia (green-blind)
#005CC7
Tritanopia (blue-blind)
#007789
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #305cc9;
/* rgb */ color: rgb(48, 92, 201);
/* oklch */ color: oklch(50.8% 0.177 264.4);
Tailwind
colors: {
  custom: {
    50: '#7e89da',
    500: '#305cc9',
    950: '#000000',
  },
}
SCSS
$custom: #305cc9;
$custom-light: #7e89da;
$custom-dark: #000000;
JSON
{
  "hex": "#305cc9",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 201
  },
  "hsl": {
    "h": 222.745,
    "s": 61.446,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50845,
    "c": 0.17682,
    "h": 264.4
  },
  "luminance": 0.125
}

Semantic roles & 50–950 ramp

primary
#305CC9
secondary
#CFBA86
accent
#B643E5
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #305CC9

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

Preview Lab → · Contrast checker → · Palette generator →

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