#304FAB#304FAB

#304FAB is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.8% C 0.152 H 266.4°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#304FAB
RGBrgb(48, 79, 171)
HSLhsl(225, 56%, 43%)
HSVhsv(225, 72%, 67%)
CMYKcmyk(71.9%, 53.8%, 0%, 32.9%)
CIE-LABlab(36.29, 20.93, -52.71)
CIE-LCHlch(36.29, 56.72, 291.65°)
OKLaboklab(45.84% -0.0096 -0.1517)
OKLCHoklch(45.84% 0.152 266.4)
XYZxyz(11.3630, 9.1594, 39.6893)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304FAB #AB8C30
analogous
#308CAB #304FAB #4E30AB
triadic
#304FAB #AB304F #4FAB30
tetradic
#304FAB #AB308C #AB8C30 #30AB4E
square
#304FAB #AB308C #AB8C30 #30AB4E
split-complementary
#304FAB #AB4E30 #8CAB30
monochromatic
#15234B #23397B #304FAB #4C6CCD #7B93DA

Accessibility & contrast

On white

7.41
#304FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#304FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304FAB
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304FAB#FFFFFF#000000##FFFFFF
##304FAB1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5BAE
Deuteranopia (green-blind)
#0050A9
Tritanopia (blue-blind)
#006575
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #304fab;
/* rgb */ color: rgb(48, 79, 171);
/* oklch */ color: oklch(45.8% 0.152 266.4);
Tailwind
colors: {
  custom: {
    50: '#787fc5',
    500: '#304fab',
    950: '#000000',
  },
}
SCSS
$custom: #304fab;
$custom-light: #787fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#304fab",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 171
  },
  "hsl": {
    "h": 224.878,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45839,
    "c": 0.15198,
    "h": 266.4
  },
  "luminance": 0.09161
}

Semantic roles & 50–950 ramp

primary
#304FAB
secondary
#C3AF74
accent
#B948DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #304FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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