#304CC1#304CC1

#304CC1 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.1% C 0.186 H 268.0°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#304CC1
RGBrgb(48, 76, 193)
HSLhsl(228, 60%, 47%)
HSVhsv(228, 75%, 76%)
CMYKcmyk(75.1%, 60.6%, 0%, 24.3%)
CIE-LABlab(37.20, 31.09, -64.20)
CIE-LCHlch(37.20, 71.33, 295.84°)
OKLaboklab(47.06% -0.0065 -0.1855)
OKLCHoklch(47.06% 0.186 268)
XYZxyz(13.4257, 9.6461, 51.5960)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CC1 #C1A530
analogous
#3094C1 #304CC1 #5D30C1
triadic
#304CC1 #C1304C #4CC130
tetradic
#304CC1 #C13094 #C1A530 #30C15D
square
#304CC1 #C13094 #C1A530 #30C15D
split-complementary
#304CC1 #C15D30 #94C130
monochromatic
#18255F #243990 #304CC1 #5971D6 #8A9BE2

Accessibility & contrast

On white

7.17
#304CC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#304CC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304CC1
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CC1#FFFFFF#000000##FFFFFF
##304CC11.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC5
Deuteranopia (green-blind)
#0051BF
Tritanopia (blue-blind)
#006A7F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #304cc1;
/* rgb */ color: rgb(48, 76, 193);
/* oklch */ color: oklch(47.1% 0.186 268.0);
Tailwind
colors: {
  custom: {
    50: '#7e7dd5',
    500: '#304cc1',
    950: '#000000',
  },
}
SCSS
$custom: #304cc1;
$custom-light: #7e7dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#304cc1",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 193
  },
  "hsl": {
    "h": 228.414,
    "s": 60.166,
    "l": 47.255
  },
  "oklch": {
    "l": 0.47055,
    "c": 0.18559,
    "h": 268
  },
  "luminance": 0.09648
}

Semantic roles & 50–950 ramp

primary
#304CC1
secondary
#CCBD81
accent
#C544E3
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #304CC1

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

Preview Lab → · Contrast checker → · Palette generator →

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