#304EBC#304EBC

#304EBC is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.0% C 0.177 H 267.4°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#304EBC
RGBrgb(48, 78, 188)
HSLhsl(227, 59%, 46%)
HSVhsv(227, 74%, 74%)
CMYKcmyk(74.5%, 58.5%, 0%, 26.3%)
CIE-LABlab(37.31, 27.94, -61.09)
CIE-LCHlch(37.31, 67.18, 294.58°)
OKLaboklab(47.01% -0.0079 -0.1763)
OKLCHoklch(47.01% 0.177 267.4)
XYZxyz(13.0173, 9.7066, 48.7547)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304EBC #BC9E30
analogous
#3094BC #304EBC #5830BC
triadic
#304EBC #BC304E #4EBC30
tetradic
#304EBC #BC3094 #BC9E30 #30BC58
square
#304EBC #BC3094 #BC9E30 #30BC58
split-complementary
#304EBC #BC5830 #94BC30
monochromatic
#17265A #243A8B #304EBC #5571D4 #869AE0

Accessibility & contrast

On white

7.14
#304EBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#304EBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304EBC
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304EBC#FFFFFF#000000##FFFFFF
##304EBC1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC0
Deuteranopia (green-blind)
#0052BA
Tritanopia (blue-blind)
#006A7D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #304ebc;
/* rgb */ color: rgb(48, 78, 188);
/* oklch */ color: oklch(47.0% 0.177 267.4);
Tailwind
colors: {
  custom: {
    50: '#7c7fd1',
    500: '#304ebc',
    950: '#000000',
  },
}
SCSS
$custom: #304ebc;
$custom-light: #7c7fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#304ebc",
  "rgb": {
    "r": 48,
    "g": 78,
    "b": 188
  },
  "hsl": {
    "h": 227.143,
    "s": 59.322,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47012,
    "c": 0.17651,
    "h": 267.4
  },
  "luminance": 0.09708
}

Semantic roles & 50–950 ramp

primary
#304EBC
secondary
#CABA7E
accent
#C145E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #304EBC

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

Preview Lab → · Contrast checker → · Palette generator →

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