#305DC9#305DC9

#305DC9 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.0% C 0.176 H 264.1°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#305DC9
RGBrgb(48, 93, 201)
HSLhsl(222, 61%, 49%)
HSVhsv(222, 76%, 79%)
CMYKcmyk(76.1%, 53.7%, 0%, 21.2%)
CIE-LABlab(42.27, 23.03, -60.61)
CIE-LCHlch(42.27, 64.84, 290.81°)
OKLaboklab(51.05% -0.0181 -0.1747)
OKLCHoklch(51.05% 0.176 264.1)
XYZxyz(15.6721, 12.6724, 56.8671)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305DC9 #C99C30
analogous
#30AAC9 #305DC9 #5030C9
triadic
#305DC9 #C9305D #5DC930
tetradic
#305DC9 #C930AA #C99C30 #30C950
square
#305DC9 #C930AA #C99C30 #30C950
split-complementary
#305DC9 #C95030 #AAC930
monochromatic
#182F66 #244698 #305DC9 #5E82D8 #8FA8E4

Accessibility & contrast

On white

5.94
#305DC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#305DC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #305DC9
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305DC9#FFFFFF#000000##FFFFFF
##305DC91.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCD
Deuteranopia (green-blind)
#005DC7
Tritanopia (blue-blind)
#00778A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #305dc9;
/* rgb */ color: rgb(48, 93, 201);
/* oklch */ color: oklch(51.0% 0.176 264.1);
Tailwind
colors: {
  custom: {
    50: '#7e8ada',
    500: '#305dc9',
    950: '#000000',
  },
}
SCSS
$custom: #305dc9;
$custom-light: #7e8ada;
$custom-dark: #000000;
JSON
{
  "hex": "#305dc9",
  "rgb": {
    "r": 48,
    "g": 93,
    "b": 201
  },
  "hsl": {
    "h": 222.353,
    "s": 61.446,
    "l": 48.824
  },
  "oklch": {
    "l": 0.51048,
    "c": 0.1756,
    "h": 264.1
  },
  "luminance": 0.12674
}

Semantic roles & 50–950 ramp

primary
#305DC9
secondary
#CFB986
accent
#B543E5
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #305DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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