#304ABD#304ABD

#304ABD is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.3% C 0.183 H 268.4°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#304ABD
RGBrgb(48, 74, 189)
HSLhsl(229, 59%, 46%)
HSVhsv(229, 75%, 74%)
CMYKcmyk(74.6%, 60.8%, 0%, 25.9%)
CIE-LABlab(36.36, 30.91, -63.22)
CIE-LCHlch(36.36, 70.38, 296.06°)
OKLaboklab(46.33% -0.0051 -0.1826)
OKLCHoklch(46.33% 0.183 268.4)
XYZxyz(12.8498, 9.1987, 49.2326)
Luminance0.0920 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304ABD #BDA330
analogous
#3091BD #304ABD #5D30BD
triadic
#304ABD #BD304A #4ABD30
tetradic
#304ABD #BD3091 #BDA330 #30BD5D
square
#304ABD #BD3091 #BDA330 #30BD5D
split-complementary
#304ABD #BD5D30 #91BD30
monochromatic
#17245B #24378C #304ABD #566DD4 #8797E0

Accessibility & contrast

On white

7.39
#304ABD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#304ABD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304ABD
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304ABD#FFFFFF#000000##FFFFFF
##304ABD1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC1
Deuteranopia (green-blind)
#004FBB
Tritanopia (blue-blind)
#00677C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #304abd;
/* rgb */ color: rgb(48, 74, 189);
/* oklch */ color: oklch(46.3% 0.183 268.4);
Tailwind
colors: {
  custom: {
    50: '#7d7cd2',
    500: '#304abd',
    950: '#000000',
  },
}
SCSS
$custom: #304abd;
$custom-light: #7d7cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#304abd",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 189
  },
  "hsl": {
    "h": 228.936,
    "s": 59.494,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46333,
    "c": 0.1827,
    "h": 268.4
  },
  "luminance": 0.092
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #304ABD

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

Preview Lab → · Contrast checker → · Palette generator →

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