#304CAB#304CAB

#304CAB is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.2% C 0.156 H 267.4°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#304CAB
RGBrgb(48, 76, 171)
HSLhsl(226, 56%, 43%)
HSVhsv(226, 72%, 67%)
CMYKcmyk(71.9%, 55.6%, 0%, 32.9%)
CIE-LABlab(35.47, 22.91, -54.04)
CIE-LCHlch(35.47, 58.70, 292.98°)
OKLaboklab(45.22% -0.0071 -0.1556)
OKLCHoklch(45.22% 0.156 267.4)
XYZxyz(11.1515, 8.7364, 39.6188)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304CAB #AB8F30
analogous
#308AAB #304CAB #5130AB
triadic
#304CAB #AB304C #4CAB30
tetradic
#304CAB #AB308A #AB8F30 #30AB51
square
#304CAB #AB308A #AB8F30 #30AB51
split-complementary
#304CAB #AB5130 #8AAB30
monochromatic
#15224B #23377B #304CAB #4C69CD #7B91DA

Accessibility & contrast

On white

7.64
#304CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#304CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304CAB
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304CAB#FFFFFF#000000##FFFFFF
##304CAB1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#004EA9
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #304cab;
/* rgb */ color: rgb(48, 76, 171);
/* oklch */ color: oklch(45.2% 0.156 267.4);
Tailwind
colors: {
  custom: {
    50: '#797dc5',
    500: '#304cab',
    950: '#000000',
  },
}
SCSS
$custom: #304cab;
$custom-light: #797dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#304cab",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 171
  },
  "hsl": {
    "h": 226.341,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45222,
    "c": 0.15578,
    "h": 267.4
  },
  "luminance": 0.08738
}

Semantic roles & 50–950 ramp

primary
#304CAB
secondary
#C3B174
accent
#BD48DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #304CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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