#304EBF#304EBF

#304EBF is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.3% C 0.181 H 267.5°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#304EBF
RGBrgb(48, 78, 191)
HSLhsl(227, 60%, 47%)
HSVhsv(227, 75%, 75%)
CMYKcmyk(74.9%, 59.2%, 0%, 25.1%)
CIE-LABlab(37.55, 29.05, -62.46)
CIE-LCHlch(37.55, 68.89, 294.95°)
OKLaboklab(47.26% -0.0078 -0.1803)
OKLCHoklch(47.26% 0.181 267.5)
XYZxyz(13.3440, 9.8373, 50.4756)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304EBF #BFA130
analogous
#3096BF #304EBF #5A30BF
triadic
#304EBF #BF304E #4EBF30
tetradic
#304EBF #BF3096 #BFA130 #30BF5A
square
#304EBF #BF3096 #BFA130 #30BF5A
split-complementary
#304EBF #BF5A30 #96BF30
monochromatic
#17265D #243A8E #304EBF #5772D5 #889BE1

Accessibility & contrast

On white

7.08
#304EBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#304EBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304EBF
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304EBF#FFFFFF#000000##FFFFFF
##304EBF1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC3
Deuteranopia (green-blind)
#0052BD
Tritanopia (blue-blind)
#006A7F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #304ebf;
/* rgb */ color: rgb(48, 78, 191);
/* oklch */ color: oklch(47.3% 0.181 267.5);
Tailwind
colors: {
  custom: {
    50: '#7d7fd3',
    500: '#304ebf',
    950: '#000000',
  },
}
SCSS
$custom: #304ebf;
$custom-light: #7d7fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#304ebf",
  "rgb": {
    "r": 48,
    "g": 78,
    "b": 191
  },
  "hsl": {
    "h": 227.413,
    "s": 59.833,
    "l": 46.863
  },
  "oklch": {
    "l": 0.47264,
    "c": 0.18052,
    "h": 267.5
  },
  "luminance": 0.09839
}

Semantic roles & 50–950 ramp

primary
#304EBF
secondary
#CBBB80
accent
#C245E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #304EBF

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

Preview Lab → · Contrast checker → · Palette generator →

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