#304FC1#304FC1

#304FC1 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.6% C 0.182 H 267.3°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#304FC1
RGBrgb(48, 79, 193)
HSLhsl(227, 60%, 47%)
HSVhsv(227, 75%, 76%)
CMYKcmyk(75.1%, 59.1%, 0%, 24.3%)
CIE-LABlab(37.97, 29.14, -62.95)
CIE-LCHlch(37.97, 69.37, 294.84°)
OKLaboklab(47.63% -0.0085 -0.1818)
OKLCHoklch(47.63% 0.182 267.3)
XYZxyz(13.6372, 10.0691, 51.6666)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FC1 #C1A230
analogous
#3098C1 #304FC1 #5930C1
triadic
#304FC1 #C1304F #4FC130
tetradic
#304FC1 #C13098 #C1A230 #30C159
square
#304FC1 #C13098 #C1A230 #30C159
split-complementary
#304FC1 #C15930 #98C130
monochromatic
#18275F #243B90 #304FC1 #5973D6 #8A9CE2

Accessibility & contrast

On white

6.97
#304FC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#304FC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #304FC1
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FC1#FFFFFF#000000##FFFFFF
##304FC11.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C5
Deuteranopia (green-blind)
#0053BF
Tritanopia (blue-blind)
#006C80
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #304fc1;
/* rgb */ color: rgb(48, 79, 193);
/* oklch */ color: oklch(47.6% 0.182 267.3);
Tailwind
colors: {
  custom: {
    50: '#7d80d5',
    500: '#304fc1',
    950: '#000000',
  },
}
SCSS
$custom: #304fc1;
$custom-light: #7d80d5;
$custom-dark: #000000;
JSON
{
  "hex": "#304fc1",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 193
  },
  "hsl": {
    "h": 227.172,
    "s": 60.166,
    "l": 47.255
  },
  "oklch": {
    "l": 0.47625,
    "c": 0.18197,
    "h": 267.3
  },
  "luminance": 0.10071
}

Semantic roles & 50–950 ramp

primary
#304FC1
secondary
#CCBC81
accent
#C144E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #304FC1

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

Preview Lab → · Contrast checker → · Palette generator →

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