#304CBA#304CBA

#304CBA is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.5% C 0.176 H 267.9°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#304CBA
RGBrgb(48, 76, 186)
HSLhsl(228, 59%, 46%)
HSVhsv(228, 74%, 73%)
CMYKcmyk(74.2%, 59.1%, 0%, 27.1%)
CIE-LABlab(36.63, 28.51, -61.02)
CIE-LCHlch(36.63, 67.35, 295.04°)
OKLaboklab(46.46% -0.0065 -0.1761)
OKLCHoklch(46.46% 0.176 267.9)
XYZxyz(12.6632, 9.3411, 47.5805)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CBA #BA9E30
analogous
#3091BA #304CBA #5930BA
triadic
#304CBA #BA304C #4CBA30
tetradic
#304CBA #BA3091 #BA9E30 #30BA59
square
#304CBA #BA3091 #BA9E30 #30BA59
split-complementary
#304CBA #BA5930 #91BA30
monochromatic
#172459 #233889 #304CBA #546ED3 #8597DF

Accessibility & contrast

On white

7.32
#304CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#304CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304CBA
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CBA#FFFFFF#000000##FFFFFF
##304CBA1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #304cba;
/* rgb */ color: rgb(48, 76, 186);
/* oklch */ color: oklch(46.5% 0.176 267.9);
Tailwind
colors: {
  custom: {
    50: '#7c7dd0',
    500: '#304cba',
    950: '#000000',
  },
}
SCSS
$custom: #304cba;
$custom-light: #7c7dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#304cba",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 186
  },
  "hsl": {
    "h": 227.826,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.46457,
    "c": 0.17627,
    "h": 267.9
  },
  "luminance": 0.09342
}

Semantic roles & 50–950 ramp

primary
#304CBA
secondary
#C9B97D
accent
#C246E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #304CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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