#304AC1#304AC1

#304AC1 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.7% C 0.188 H 268.4°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#304AC1
RGBrgb(48, 74, 193)
HSLhsl(229, 60%, 47%)
HSVhsv(229, 75%, 76%)
CMYKcmyk(75.1%, 61.7%, 0%, 24.3%)
CIE-LABlab(36.70, 32.38, -65.02)
CIE-LCHlch(36.70, 72.64, 296.47°)
OKLaboklab(46.68% -0.0051 -0.1879)
OKLCHoklch(46.68% 0.188 268.4)
XYZxyz(13.2900, 9.3747, 51.5508)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304AC1 #C1A730
analogous
#3093C1 #304AC1 #5E30C1
triadic
#304AC1 #C1304A #4AC130
tetradic
#304AC1 #C13093 #C1A730 #30C15E
square
#304AC1 #C13093 #C1A730 #30C15E
split-complementary
#304AC1 #C15E30 #93C130
monochromatic
#18245F #243790 #304AC1 #596FD6 #8A99E2

Accessibility & contrast

On white

7.30
#304AC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#304AC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304AC1
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304AC1#FFFFFF#000000##FFFFFF
##304AC11.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC5
Deuteranopia (green-blind)
#0050BF
Tritanopia (blue-blind)
#00697E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #304ac1;
/* rgb */ color: rgb(48, 74, 193);
/* oklch */ color: oklch(46.7% 0.188 268.4);
Tailwind
colors: {
  custom: {
    50: '#7e7cd5',
    500: '#304ac1',
    950: '#000000',
  },
}
SCSS
$custom: #304ac1;
$custom-light: #7e7cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#304ac1",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 193
  },
  "hsl": {
    "h": 229.241,
    "s": 60.166,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46682,
    "c": 0.18798,
    "h": 268.4
  },
  "luminance": 0.09376
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304AC1

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

Preview Lab → · Contrast checker → · Palette generator →

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