#304CD7#304CD7

#304CD7 is a mid, highly saturated blue. Relative luminance 0.107; OKLCH L 49.0% C 0.214 H 268.1°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#304CD7
RGBrgb(48, 76, 215)
HSLhsl(230, 68%, 52%)
HSVhsv(230, 78%, 84%)
CMYKcmyk(77.7%, 64.7%, 0%, 15.7%)
CIE-LABlab(39.07, 39.06, -73.88)
CIE-LCHlch(39.07, 83.57, 297.87°)
OKLaboklab(49.02% -0.007 -0.2138)
OKLCHoklch(49.02% 0.214 268.1)
XYZxyz(16.0649, 10.7017, 65.4958)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CD7 #D7BB30
analogous
#30A0D7 #304CD7 #6830D7
triadic
#304CD7 #D7304C #4CD730
tetradic
#304CD7 #D730A0 #D7BB30 #30D768
square
#304CD7 #D730A0 #D7BB30 #30D768
split-complementary
#304CD7 #D76830 #A0D730
monochromatic
#172776 #2138A9 #304CD7 #6378E1 #97A5EB

Accessibility & contrast

On white

6.69
#304CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#304CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #304CD7
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CD7#FFFFFF#000000##FFFFFF
##304CD71.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DB
Deuteranopia (green-blind)
#0054D4
Tritanopia (blue-blind)
#00718B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #304cd7;
/* rgb */ color: rgb(48, 76, 215);
/* oklch */ color: oklch(49.0% 0.214 268.1);
Tailwind
colors: {
  custom: {
    50: '#837ee4',
    500: '#304cd7',
    950: '#000000',
  },
}
SCSS
$custom: #304cd7;
$custom-light: #837ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#304cd7",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 215
  },
  "hsl": {
    "h": 229.94,
    "s": 67.611,
    "l": 51.569
  },
  "oklch": {
    "l": 0.49015,
    "c": 0.21392,
    "h": 268.1
  },
  "luminance": 0.10704
}

Semantic roles & 50–950 ramp

primary
#304CD7
secondary
#D6CA8D
accent
#CD3DEA
background
#F8F7FE
surface
#F0EEFC
border
#CBC9D5
text
#0D0A16
muted
#7D7C84

Preview Lab

Preview with #304CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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