#304ABB#304ABB

#304ABB is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.2% C 0.180 H 268.4°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#304ABB
RGBrgb(48, 74, 187)
HSLhsl(229, 59%, 46%)
HSVhsv(229, 74%, 73%)
CMYKcmyk(74.3%, 60.4%, 0%, 26.7%)
CIE-LABlab(36.20, 30.18, -62.32)
CIE-LCHlch(36.20, 69.24, 295.84°)
OKLaboklab(46.16% -0.0051 -0.18)
OKLCHoklch(46.16% 0.18 268.4)
XYZxyz(12.6342, 9.1124, 48.0971)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304ABB #BBA130
analogous
#308FBB #304ABB #5B30BB
triadic
#304ABB #BB304A #4ABB30
tetradic
#304ABB #BB308F #BBA130 #30BB5B
square
#304ABB #BB308F #BBA130 #30BB5B
split-complementary
#304ABB #BB5B30 #8FBB30
monochromatic
#17235A #23378A #304ABB #556DD3 #8696E0

Accessibility & contrast

On white

7.44
#304ABB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#304ABB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304ABB
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304ABB#FFFFFF#000000##FFFFFF
##304ABB1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#004FB9
Tritanopia (blue-blind)
#00677B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #304abb;
/* rgb */ color: rgb(48, 74, 187);
/* oklch */ color: oklch(46.2% 0.180 268.4);
Tailwind
colors: {
  custom: {
    50: '#7c7cd0',
    500: '#304abb',
    950: '#000000',
  },
}
SCSS
$custom: #304abb;
$custom-light: #7c7cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#304abb",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 187
  },
  "hsl": {
    "h": 228.777,
    "s": 59.149,
    "l": 46.078
  },
  "oklch": {
    "l": 0.4616,
    "c": 0.18004,
    "h": 268.4
  },
  "luminance": 0.09114
}

Semantic roles & 50–950 ramp

primary
#304ABB
secondary
#C9BB7D
accent
#C545E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #304ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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