#304BC1#304BC1

#304BC1 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.9% C 0.187 H 268.2°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#304BC1
RGBrgb(48, 75, 193)
HSLhsl(229, 60%, 47%)
HSVhsv(229, 75%, 76%)
CMYKcmyk(75.1%, 61.1%, 0%, 24.3%)
CIE-LABlab(36.95, 31.73, -64.61)
CIE-LCHlch(36.95, 71.99, 296.16°)
OKLaboklab(46.87% -0.0058 -0.1867)
OKLCHoklch(46.87% 0.187 268.2)
XYZxyz(13.3573, 9.5093, 51.5733)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304BC1 #C1A630
analogous
#3093C1 #304BC1 #5E30C1
triadic
#304BC1 #C1304B #4BC130
tetradic
#304BC1 #C13093 #C1A630 #30C15E
square
#304BC1 #C13093 #C1A630 #30C15E
split-complementary
#304BC1 #C15E30 #93C130
monochromatic
#18255F #243890 #304BC1 #5970D6 #8A9AE2

Accessibility & contrast

On white

7.24
#304BC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#304BC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304BC1
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304BC1#FFFFFF#000000##FFFFFF
##304BC11.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC5
Deuteranopia (green-blind)
#0050BF
Tritanopia (blue-blind)
#00697F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #304bc1;
/* rgb */ color: rgb(48, 75, 193);
/* oklch */ color: oklch(46.9% 0.187 268.2);
Tailwind
colors: {
  custom: {
    50: '#7e7dd5',
    500: '#304bc1',
    950: '#000000',
  },
}
SCSS
$custom: #304bc1;
$custom-light: #7e7dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#304bc1",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 193
  },
  "hsl": {
    "h": 228.828,
    "s": 60.166,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46867,
    "c": 0.18679,
    "h": 268.2
  },
  "luminance": 0.09511
}

Semantic roles & 50–950 ramp

primary
#304BC1
secondary
#CCBE81
accent
#C644E3
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #304BC1

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

Preview Lab → · Contrast checker → · Palette generator →

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