#304CB1#304CB1

#304CB1 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.7% C 0.164 H 267.6°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#304CB1
RGBrgb(48, 76, 177)
HSLhsl(227, 57%, 44%)
HSVhsv(227, 73%, 69%)
CMYKcmyk(72.9%, 57.1%, 0%, 30.6%)
CIE-LABlab(35.93, 25.16, -56.86)
CIE-LCHlch(35.93, 62.18, 293.87°)
OKLaboklab(45.71% -0.0068 -0.1639)
OKLCHoklch(45.71% 0.164 267.6)
XYZxyz(11.7364, 8.9704, 42.6994)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CB1 #B19530
analogous
#308DB1 #304CB1 #5530B1
triadic
#304CB1 #B1304C #4CB130
tetradic
#304CB1 #B1308D #B19530 #30B155
square
#304CB1 #B1308D #B19530 #30B155
split-complementary
#304CB1 #B15530 #8DB130
monochromatic
#162351 #233781 #304CB1 #4F6BCF #7F93DC

Accessibility & contrast

On white

7.52
#304CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#304CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304CB1
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CB1#FFFFFF#000000##FFFFFF
##304CB11.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB4
Deuteranopia (green-blind)
#004FAF
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #304cb1;
/* rgb */ color: rgb(48, 76, 177);
/* oklch */ color: oklch(45.7% 0.164 267.6);
Tailwind
colors: {
  custom: {
    50: '#7a7dc9',
    500: '#304cb1',
    950: '#000000',
  },
}
SCSS
$custom: #304cb1;
$custom-light: #7a7dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#304cb1",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 177
  },
  "hsl": {
    "h": 226.977,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45708,
    "c": 0.16406,
    "h": 267.6
  },
  "luminance": 0.08972
}

Semantic roles & 50–950 ramp

primary
#304CB1
secondary
#C5B478
accent
#BF47E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #304CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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