#304BBD#304BBD

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

Color values

HEX#304BBD
RGBrgb(48, 75, 189)
HSLhsl(229, 59%, 46%)
HSVhsv(229, 75%, 74%)
CMYKcmyk(74.6%, 60.3%, 0%, 25.9%)
CIE-LABlab(36.62, 30.26, -62.81)
CIE-LCHlch(36.62, 69.72, 295.73°)
OKLaboklab(46.52% -0.0058 -0.1814)
OKLCHoklch(46.52% 0.181 268.2)
XYZxyz(12.9171, 9.3333, 49.2550)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304BBD #BDA230
analogous
#3092BD #304BBD #5C30BD
triadic
#304BBD #BD304B #4BBD30
tetradic
#304BBD #BD3092 #BDA230 #30BD5C
square
#304BBD #BD3092 #BDA230 #30BD5C
split-complementary
#304BBD #BD5C30 #92BD30
monochromatic
#17245B #24388C #304BBD #566ED4 #8798E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##304BBD#FFFFFF#000000##FFFFFF
##304BBD1.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)
#005DC1
Deuteranopia (green-blind)
#0050BB
Tritanopia (blue-blind)
#00687D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #304bbd;
/* rgb */ color: rgb(48, 75, 189);
/* oklch */ color: oklch(46.5% 0.181 268.2);
Tailwind
colors: {
  custom: {
    50: '#7d7dd2',
    500: '#304bbd',
    950: '#000000',
  },
}
SCSS
$custom: #304bbd;
$custom-light: #7d7dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#304bbd",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 189
  },
  "hsl": {
    "h": 228.511,
    "s": 59.494,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46521,
    "c": 0.18149,
    "h": 268.2
  },
  "luminance": 0.09335
}

Semantic roles & 50–950 ramp

primary
#304BBD
secondary
#CABC7F
accent
#C545E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #304BBD

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

Preview Lab → · Contrast checker → · Palette generator →

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