#304BC9#304BC9

#304BC9 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.6% C 0.197 H 268.3°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#304BC9
RGBrgb(48, 75, 201)
HSLhsl(229, 61%, 49%)
HSVhsv(229, 76%, 79%)
CMYKcmyk(76.1%, 62.7%, 0%, 21.2%)
CIE-LABlab(37.62, 34.65, -68.18)
CIE-LCHlch(37.62, 76.48, 296.94°)
OKLaboklab(47.57% -0.0059 -0.1971)
OKLCHoklch(47.57% 0.197 268.3)
XYZxyz(14.2740, 9.8760, 56.4010)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304BC9 #C9AE30
analogous
#3098C9 #304BC9 #6230C9
triadic
#304BC9 #C9304B #4BC930
tetradic
#304BC9 #C93098 #C9AE30 #30C962
square
#304BC9 #C93098 #C9AE30 #30C962
split-complementary
#304BC9 #C96230 #98C930
monochromatic
#182666 #243998 #304BC9 #5E73D8 #8F9EE4

Accessibility & contrast

On white

7.06
#304BC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#304BC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304BC9
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304BC9#FFFFFF#000000##FFFFFF
##304BC91.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CD
Deuteranopia (green-blind)
#0051C7
Tritanopia (blue-blind)
#006C83
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #304bc9;
/* rgb */ color: rgb(48, 75, 201);
/* oklch */ color: oklch(47.6% 0.197 268.3);
Tailwind
colors: {
  custom: {
    50: '#807dda',
    500: '#304bc9',
    950: '#000000',
  },
}
SCSS
$custom: #304bc9;
$custom-light: #807dda;
$custom-dark: #000000;
JSON
{
  "hex": "#304bc9",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 201
  },
  "hsl": {
    "h": 229.412,
    "s": 61.446,
    "l": 48.824
  },
  "oklch": {
    "l": 0.47572,
    "c": 0.19723,
    "h": 268.3
  },
  "luminance": 0.09878
}

Semantic roles & 50–950 ramp

primary
#304BC9
secondary
#CFC286
accent
#C843E5
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #304BC9

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

Preview Lab → · Contrast checker → · Palette generator →

#304BC9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva