#304AB1#304AB1

#304AB1 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.3% C 0.167 H 268.2°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#304AB1
RGBrgb(48, 74, 177)
HSLhsl(228, 57%, 44%)
HSVhsv(228, 73%, 69%)
CMYKcmyk(72.9%, 58.2%, 0%, 30.6%)
CIE-LABlab(35.40, 26.48, -57.72)
CIE-LCHlch(35.40, 63.50, 294.64°)
OKLaboklab(45.31% -0.0053 -0.1665)
OKLCHoklch(45.31% 0.167 268.2)
XYZxyz(11.6008, 8.6991, 42.6542)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304AB1 #B19730
analogous
#308BB1 #304AB1 #5730B1
triadic
#304AB1 #B1304A #4AB130
tetradic
#304AB1 #B1308B #B19730 #30B157
square
#304AB1 #B1308B #B19730 #30B157
split-complementary
#304AB1 #B15730 #8BB130
monochromatic
#162251 #233681 #304AB1 #4F69CF #7F92DC

Accessibility & contrast

On white

7.66
#304AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#304AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304AB1
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304AB1#FFFFFF#000000##FFFFFF
##304AB11.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B4
Deuteranopia (green-blind)
#004DAF
Tritanopia (blue-blind)
#006476
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #304ab1;
/* rgb */ color: rgb(48, 74, 177);
/* oklch */ color: oklch(45.3% 0.167 268.2);
Tailwind
colors: {
  custom: {
    50: '#7a7cc9',
    500: '#304ab1',
    950: '#000000',
  },
}
SCSS
$custom: #304ab1;
$custom-light: #7a7cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#304ab1",
  "rgb": {
    "r": 48,
    "g": 74,
    "b": 177
  },
  "hsl": {
    "h": 227.907,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45312,
    "c": 0.16656,
    "h": 268.2
  },
  "luminance": 0.087
}

Semantic roles & 50–950 ramp

primary
#304AB1
secondary
#C5B678
accent
#C247E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #304AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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